find a string in a file in linux code example
Example 1: find text in any file linux
grep -rnw '/path/to/somewhere/' -e 'pattern'
Example 2: bash find all files containing string
grep -r '/path/to/somewhere/' -e 'pattern'
grep -rnw '/path/to/somewhere/' -e 'pattern'
grep -r '/path/to/somewhere/' -e 'pattern'