bash search files for string code example
Example 1: bash find all files containing string
grep -r '/path/to/somewhere/' -e 'pattern'
Example 2: shell find string in directory
grep -R "string_to_search" *
grep -r '/path/to/somewhere/' -e 'pattern'
grep -R "string_to_search" *