I have a list of files:
catfish.fa
polar.fa
catfish.ids.txt
polar.ids.txt
I want to run this command for each file with a matching character string. So for example, I'd like to run this:
cat catfish.fa | seqkit grep -f catfish.ids.txt > catfish.output.fa
Similarly...
cat polar.fa | seqkit grep -f polar.ids.txt > polar.output.fa
How can I run this command for each file pair in the directory and in parallel? Thanks for your help!