Find all files with a ".txt" extension in the current directory and its subdirectories, and count the number of lines containing the string "string".
find . -type f -name "*.txt" | xargs grep -ci 'string'