I'm quite unfamiliar with Unix, and I am trying to understand how to perform
grep through a list of text files, using patterns stored in a text file called searchlist.txt. The text file is a new-line separated list of names that looks something like this:
And I need to search for these names in some very large text files. I also need to ignore case. I've come up with
grep -i -f searchlist.txt *.txt, but the only output I am getting looks like this:
"adams, jane":"washington, martha"
I know for certain that these names are somewhere in the text files. I wonder if there is some specific way that searchlist.txt needs to be formatted? Is there some way I need to specify in the command that this list is separated by new lines?