Find all files in the current directory and its subdirectories, and search for the string 'pattern' in each file, displaying the line number and filename where the string is found.
find . -exec grep -rnw {} -e 'pattern' \;