I have a fasta file in this format:
>WP_003850266.1 toxin [Corynebacterium diphtheriae]
MSRKLFASILIGALLGIGAPPSAHAGADDV
EQVGTEEFIKRFGDGASRVVLSLPFAEGS
AVHHNT
Which I want it to appear like
>WP_003850266.1 toxin [Corynebacterium diphtheriae]
MSRKLFASILIGALLGIGAPPSAHAGADDVEQVGTEEFIKRFGDGASRVVLSLPFAEGSAVHHNT
However for the particular fasta file I have, for some reason no matter what I try, the newlines cannot be removed.
I have already tried
awk '/^>/ {printf("\n%s\n",$0);next; } { printf("%s",$0);} END {printf("\n");}' < test.fasta > output.fasta
But the new lines remain ...
Try with bioawk, for example or something similar: