Should remove the line beginning with 13 only
No.
$ cat test.txt
>13_seq2344_ATCGACGGAACTGA
>1342_seq2134_AGCTGTGGCAT
>130_SEQ2289_TCGAATCGAGGAAC
>113_test
$ awk '!/13_/' test.txt
>1342_seq2134_AGCTGTGGCAT
>130_SEQ2289_TCGAATCGAGGAAC
$ awk '!/^>13_/' test.txt
>1342_seq2134_AGCTGTGGCAT
>130_SEQ2289_TCGAATCGAGGAAC
>113_test
• 0 views
•
link
or
you also have to think about removing sequences as well. Try this:
seqkit -w 0 grep -vrip "^13_" input.fa. Awk or sed remove only the matching the line, not the following sequences. It is difficult if sequences are in multlines.