Find all files in the current directory and its subdirectories and search for the string 'foo' in each file, printing the filename and the matching line for each match.
find . -type f -exec grep -H 'foo' {} +