recursively find files by contents

Here's a script:

Alternatively here is a one shot command:

    
grep -rnw '/path/to/somewhere/' -e 'pattern'
    

edit this page