I have a combined fasta file with all my sequences. I want to print the ID lines and their DNA sequence that end in .4
So far I have awk /'>*.4'/ {getline;print} combined.fasta
Which prints the sequences that I want, how do I get the ID lines as well?
Can you show an example of your input data and ideal output?
Thanks for responding, I have ID's that end in .1, .2 and so on up until .8. I just want the .4's and their sequence.
Input:
Output: