raymond@kronos-fi.arc.nasa.gov (Eric A. Raymond) (05/11/91)
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.
It would be really nice to have something like tags-query-replace from
GNU Emacs.
Ideal features would include:
- 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
- optional word and case sensitivity
- able to deal with files > 64K
- source code availability (but not strictly needed)
--
Eric A. Raymond (raymond@ptolemy.arc.nasa.gov)
G7 C7 G7 G#7 G7 G+13 C7 GM7 Am7 Bm7 Bd7 Am7 C7 Do13 G7 C7 G7 D+13: Elmore Jamesrahardj@ccu.umanitoba.ca (Budi Rahardjo) (05/11/91)
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 <rahardj@ccu.umanitoba.ca>