Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE's and grep



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




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org