Linux Find Text In Files With Find

find . -exec grep -q "searchthisstring" '{}' \; -print
This command will search for files and directories in the current directory and run grep on each one. All files that contain the string will print to standard output.

Tags:

Leave a Reply