linux search through contents of files recursively code example
Example 1: linux search for a given string in all files recursively
$ grep -r "String to be searched goes here" *
Example 2: grep all files recursively
grep -r "texthere" .
$ grep -r "String to be searched goes here" *
grep -r "texthere" .