linux find file with certain string code example
Example 1: bash find all files containing string
grep -r '/path/to/somewhere/' -e 'pattern'
Example 2: grep for all .py files containing a word
grep -rnw '/path/to/somewhere/' -e 'pattern'
grep -r '/path/to/somewhere/' -e 'pattern'
grep -rnw '/path/to/somewhere/' -e 'pattern'