Search for 'pattern_to_search' in all regular files with '.txt' extension under '/directory/containing/files' and show the matched lines along with filenames
find /directory/containing/files -type f -name "*.txt" -exec grep -H 'pattern_to_search' {} +