Re: mass word find/replace

2004-01-07 Thread Matthew Seaman
On Wed, Jan 07, 2004 at 04:30:34PM +0100, Björn Andersson wrote: > sed(1) should be able do the trick. > > sed -e /pn_/s//nuke_/g * > > The above command should replace all pn_ to nuke_ in all files in the directory you > run the command. Except that will print the result to stdout -- I suspect

Re: mass word find/replace

2004-01-07 Thread Björn Andersson
sed(1) should be able do the trick. sed -e /pn_/s//nuke_/g * The above command should replace all pn_ to nuke_ in all files in the directory you run the command. /Björn > I am trying to find a way to replace one word in a file > with another word, like windows wordpad find/replace. > > I need

Re: mass word find/replace

2004-01-07 Thread Lance E. Lott
load it up in vi and type: :%s/pn_/nuke_/g Lance At 09:21 AM 1/7/2004, you wrote: I am trying to find a way to replace one word in a file with another word, like windows wordpad find/replace. I need to change pn_ to nuke_ and have a 188000 lines to do it on. ugh thanks Mark

Re: mass word find/replace

2004-01-07 Thread Bernard El-Hagin
Mark wrote: >I am trying to find a way to replace one word in a file >with another word, like windows wordpad find/replace. > >I need to change pn_ to nuke_ and have a 188000 lines to do it on. ugh perl -i.bak -pe 's/pn_/nuke_/g' /input/file(s) The old file(s) will be saved with the extensi

mass word find/replace

2004-01-07 Thread M.D. DeWar
I am trying to find a way to replace one word in a file with another word, like windows wordpad find/replace. I need to change pn_ to nuke_ and have a 188000 lines to do it on. ugh thanks Mark ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org