Find all files with the extension ".txt" and type "f" (files) and use xargs to search for the string "sometext" and list the files that contain it.
find . -name "*.txt" -type f | xargs grep -l "sometext"