Find & Grep - MichaelHinds.com

Example: to find all occurances of "boobies" in all files with an extension "tcl":

find . -name '*.tcl' -exec grep --with-filename 'boobies' '{}' \;

This is better than a recursive grep because a recursive grep only traverses directories that match the file specification (*.tcl in this case), which isn't usually what you want.