bash find files containing string 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*"