I have a tab-delimited file that I want to print the first thee columns of.
I would prefer to keep my way of doing this as simple and reproducible as possible:
awk -F" " '{print $1,"\t" ,$2, "\t", $3}' old.bed > new.bed
But when I try further analysis on the new file I get an error saying that the file is of an unexpected format...
I check the contents of the file with:
cat -A new.bed | more
chr1 3000870 3000918$
chr1 3000870 3000918$
chr1 3000872 3000920$
chr1 3000872 3000920$
chr1 3000872 3000920$
It looks normal....
what is going wrong and how can I avoid it?