If you need to find a specific string in all files of a particular type in the current directory and all directories beneath it, you can use a command similar to the following:
find . -name "*.php" -exec grep "noindex" {} /dev/null \;
In this case I want to find all of the PHP files where I have included the string "noindex" in a META tag.
References: