Find all files with the extension ".txt" in the current directory and its subdirectories, and print the lines containing the word "foobar" from each of those files.
find /dev/null -iname "./*.txt" | xargs -I{} sed -n '/foobar/p' {}