I often need to find a particular sequence in a fasta file and print it. For those who don\'t know, fasta is a text file format for biological sequences (DNA, proteins, etc.
Using sed only:
sed
sed -n '/>sequence3/,/>/ p' | sed '${/>/d}'