linux search files for text 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: search for filename recursively linux
find . -name "foo*"
$ grep -r "String to be searched goes here" *
find . -name "foo*"