Entering edit mode
6.7 years ago
KVC_bioinfo
▴
590
Hello,
I have a huge Fasta file. I would like to extract all the sequences with id such that the ids start from NM?
I tried following two commands which did not work for me.
awk‘BEGIN{RS=”>”}/NM/{print“>”$0}’huge.fasta
grep '^>NM' -B 1 huge.fasta > Nm.fasta
Could someone help me with a better solution. thank you in advance.