Search the entire file system for any file with any name and pipe the results to a command that will search for the string 'foo' and only list the files that contain it.
find / -name '*.*' | xargs grep -l 'foo'