fqgrep greps sequences files against a file of sequence identifiers given through -f/--file. For practical reasons you might want to add fingerseq to your path, this is usually done with:
conda install genomicepidemiology::fqgrep