7 recusrive tree search for string in files with specific extension

 find . -name "*.txt" -print0 | xargs -0 egrep 'string'