in reply to Re^4: text search in a file
in thread text search in a file

Thanks! That's a lot nicer to use than what I posted.

Just FYI, Solaris' built-in grep doesn't like the q flag. This seems to work well:
find search_path -type f -exec grep -li search_term {} \;
Also, at least on Solaris, that -print causes double output.