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