Useful Linux/Unix shell commands

By | November 14, 2013

Recursively search files containing a given string

grep

grep -r "String" .

find

find . -type f -exec grep -l "String" {} +

Note:
Everything has been tested under Linux 2.6 (CentOS, RedHat Entreprise)

Leave a Reply

Your email address will not be published. Required fields are marked *