Find all text files (ending with .txt) in the current directory and its subdirectories, and print the names of the files that contain the word 'word'.
find -maxdepth 2 -name "*.txt" -exec grep -l 'word' {} \;