how to find text in all files linux code example
Example 1: shell find string in directory
grep -R "string_to_search" *
Example 2: grep for all .py files containing a word
grep -rnw '/path/to/somewhere/' -e 'pattern'
grep -R "string_to_search" *
grep -rnw '/path/to/somewhere/' -e 'pattern'