Find all files with the extension .txt in the current directory and its subdirectories, and search for the string 'Foo' in them, displaying the names of the files in which it was found.
find . -name "*.txt" | xargs grep -rl 'Foo'