Grep is a great utility in linux shell. It will search all the files for a particular word and display the files and lines. So You can check for a word or sentance using grep. -r will option will perform a recursive search to all subdirectories for the particular word grep -r “foo” /path/to/directory grep…