Is there a grep-like program for Ubuntu that can search a text file, or batch of text files in a folder, for any occurances of words in another text file or a list like a csv file or an ods file or whatever. So I have a folder with 50 text files and want to find any occurances of words on a list in another file containing 500 words, is there any way of doing this? Thanks!
grep -f filename
will pull search strings from the named file.man grep
is your friend.grep -R -f <(cut -d, -f2 ~/list.csv | head -3) ~/path