find all files that have a string bash code example
Example 1: bash find all files containing string
grep -r '/path/to/somewhere/' -e 'pattern'
Example 2: command line how to find all files that have a string
grep -rnw '/path/to/somewhere/' -e 'pattern'