Find all files in the current directory and its subdirectories, then search for the pattern 'pattern' in each file and print the name of the file if the pattern is found.
find . -name "*.*" | xargs grep -l 'pattern' | awk '{print $1}'