I have multiple gene Ids or labels in a file. I want to use grep -f file.txt *.aln to find out in which alignment files my genes are present. I have tried grep --help and the -f switch is mentioned there. But the problem is: this command is not working in my linux system. Could anybody explain this? Is there any particular format required for this kind of command?
grep -f file.txt directory/path/*.aln