I have a fasta file that looks like this
I have another file with the list of patterns. My pattern list file looks like this
What I want to do is to look for the patterns in my fasta file and delete those patterns and the next line of sequence corresponding to that pattern. Any thoughts how do I go about it with sed or awk or grep or perl?
I knew how to use sed to delete a single pattern but how to delete multiple patterns from a file instead of writing something like this
sed -e '/pattern/d' -e '/pattern/d' file
Thanks in advance.