Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!ccu.umanitoba.ca!rahardj From: rahardj@ccu.umanitoba.ca (Budi Rahardjo) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: Replace strings in multiple files Summary: Use perl Keywords: perl Message-ID: <1991May11.111438.404@ccu.umanitoba.ca> Date: 11 May 91 11:14:38 GMT References: <12565@ptolemy-ri.ptolemy.arc.nasa.gov> Followup-To: comp.binaries.ibm.pc.d Organization: University of Manitoba, Winnipeg, Canada Lines: 36 raymond@kronos-fi.arc.nasa.gov (Eric A. Raymond) writes: :I'm looking for a utility that will do a global replace of strings :over a specified set of files. :Right now I have a SED script that I use, but this is sort of slow and :brain dead. How about using "perl" ? It's faster than sed. (And there is a script which can convert your sed script to perl script). Get perl from simtel20. :Ideal features would include: : - fast Perl is fast : - ability to perform multiple replaces at a time (i.e. more than : one string) : - interactive and non-interactive (i.e., go ahead and replace all) modes Both could be done easily : - optional word and case sensitivity Could be done. : - able to deal with files > 64K Limited by memory. : - source code availability (but not strictly needed) Source code is available. :Eric A. Raymond (raymond@ptolemy.arc.nasa.gov) -- budi rahardjo