Reading line by line
awk '/^>/ {printf("%s%s\t",(N>0?"\n":""),$0);N++;next;} {printf("%s",$0);} END {printf("\n");}' < input.fa
one can read this awk script as:
if the current line ($0) starts like a fasta header (^>). Then we prin...