search for the word "foo" in all the regular/normal files with the name "file-pattern" in the directory "/path/to/dir"
find /path/to/dir/ -type f -name "file-pattern" -print0 | xargs -I {} -0 grep -l "foo" "{}"