I have a gene list txt file and need to format it to tab-delimit file.
The list has six columns: chr, startPos,endPos, width, strand, name
The code is awk '{printf("%s\t%s\t%s\t%s\t%s\t%s\t\n",$1,$2,$3,$4,$5,$6)};' input.txt > output.txt
Then I ran some codes, the result said that 'Perhaps you have non-integer starts or ends at line 1?'
I used ' cat -e file |more' to check the lines, each line has addition (tab) $ at the end.
ex. chr12<tab>1234<tab>456<tab>789<tab>+<tab>TP53<tab>$
Please let me know where is wrong. Thanks in advance.