Find all files with the extension .txt in the current working directory and search for the string 'string' in them, then list the files that contain the string.
find $(pwd) -name '*.txt' | xargs grep -l 'string'