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

Re: Basic admin question

perl -p -i -e 's/foo/bar/g' *

or have a look at sed. it's available at early runlevels when perl's
still asleep. :o)

Am Die, 2002-12-17 um 00.58 schrieb Greg Thomas:
> I have about 40 text files in which I need to change one phrase to 
> another.  Can someone suggest a good tool for the job?  Please don't 
> tell me how to do it, I just want a pointer to an existing tool or what 
> utilities to throw into a small script.
> I know this is off-topic (but it is on my OpenBSD box), I just want to 
> get people's minds off of the CD thread.
> Greg

Visit your host, monkey.org