View Single Post
Old 02-23-2017, 06:53 AM   #2
vivek_
PhD Student
 
Location: Denmark

Join Date: Jul 2012
Posts: 164
Default

Quote:
grep "^>" your_fasta > headers.txt
Gives you the headers

If your entire sequence is in one line, you can use

Quote:
grep -A 1 "Pyrobaculum aerophilum str. IM2" > paerophilum.fasta
to select all sequences belonging to that organism.
vivek_ is offline   Reply With Quote