I have two text files one like this
dog
cat
fish
and another file like this
The cat ran
The fish swam
The parrot sang
I'm looking to be able to search through the second text file and print the lines that contain the words from the first text file, for example, the output for this would be
The cat ran
The fish swam