in reply to Grepping a File

Going by the subject alone, memgrep appreared in mind.

(Then the body defalted my expectation to find a Perl solution.)

Edited by planetscape - removed pre tags, replaced with <p></p> tags

Apr 17, 2006. Well, title change of OP renders my above comment useless.