I have a file strings.txt
containing 100 strings, each on a line
string1
string2
...
string100
For each of those strings, I want to find all the lines in file_to_look.txt
that contain that string. Now, I could run grep
100 times like grep string1 file_to_look.txt
, then grep string2 file_to_look.txt
, etc., but that would take a lot of typing time for me.
Is there a way that I don't have to do so much typing?
EDIT: Solutions that go through file_to_look.txt
only 1 time instead of 100 times would be great, since my file_to_look.txt
is quite large.