Find all files (with any extension) in the current directory and its subdirectories, up to a maximum depth of 2, and execute the command 'grep -l 'example' on each of them.
find . -maxdepth 2 -type f -name "*.*" -exec grep -l 'example' {} \;