linux search file for pattern code example
Example 1: linux search for a given string in all files recursively
$ grep -r "String to be searched goes here" *
Example 2: linux search for line in file
grep -R "keyword" /directory/
$ grep -r "String to be searched goes here" *
grep -R "keyword" /directory/