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.
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.