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.
grep '^>NM' -B 1 huge.fasta > Nm.fasta
Could someone help me with a better solution. thank you in advance.