grep for all .py files containing a word code example Example: grep for all .py files containing a word grep -rnw '/path/to/somewhere/' -e 'pattern'