perl can do that as simple as this:

perl -pi '.orig' -e 's/foo/bar/' *

That would save copies of the original unchanged files with the extension
.orig .
and change foo to bar in every instance of every file in that directory.





-----Original Message-----
From: Rex Shea [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 2:23 PM
To: [EMAIL PROTECTED]
Subject: [mfg-smartcam] Mass Text Editing Utility


Hello all,
 
I was wondering if any of you have ever run across some sort of text editing
utility that will allow a search and replace operation on all text files in
a given directory. 
 
I have about 5,000 CNC programs that need a couple changes in their tool
descriptions and I really do not want to do them all by hand!
 
Any help would be greatly appreciated.
 
Thanks,
Rex Shea
IMS
532 W. Lester ST. #130
Tucson AZ 85705
TEL (520) 670-9145
FAX (520) 670-9147 
======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================

Reply via email to