RE's and grep

David Kramer david at thekramers.net
Tue Sep 2 21:32:07 EDT 2003


On Tuesday 02 September 2003 03:35 pm, Derek Martin wrote:
> If the file contains more than one word per line (such as a dictionary
> with definitions), this won't work.  It can still be done, but you'd
> need a lot more logic.  AFAIK, there's no way to do that with a single
> regular expression, or even a simple pipeline.

It can be done in Perl in one step using the /g modifier. 

----------------------------------------------------------------------------
DDDD   David Kramer         david at thekramers.net       http://thekramers.net
DK KD  
DKK D  I can write everything I know about administering sendmail in the
DK KD  inside of a matchbook with a dull crayon.
DDDD                                               Patrick Norton on Tech TV



More information about the Discuss mailing list