Find all files with the extension .txt and search for the pattern 'pattern' in them, ignoring case, and print the names of the files that contain the pattern.
find . -name "*.txt" -exec grep -il 'pattern' {} \;