grep is a very useful terminal command used to search for text within files, the default is to print all lines that contain the given string.
grep word file -> print all the lines of the file containing the word.
cat file1 | grep keyword
Unix command | grep keyword
Find me on Google+