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 that the OP would find an in-place edit more useful, like so: sed -i.bak -e 's/pn_/nuke_/g' filenames (Or any of the other responses in this thread.) Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK
Description: PGP signature