Find all files in the current directory and its subdirectories, whose name contains any characters and has any extension, and then search for the string 'pattern' in those files and list the files that contain the string.
find . -type f -name "*.*" | xargs grep -l 'pattern'