Mail Archives: djgpp/1999/08/07/10:09:47
On Tuesday, in article
<8D53104ECD0CD211AF4000A0C9D60AE301545D82 AT probe-2 DOT acclaim-euro DOT net>
djgpp AT delorie DOT com "Shawn Hargreaves" wrote:
> Dave Scott writes:
> > Is there a simple utility available to do something like this :-
> >
> > edit <existing_string> <replacement_string> <a_bunch_of_filespecs>
>
> A decent programming editor should have builtin support for
> search/replace across multiple files. But if you need to do this
> in a standalone form, try something like:
>
> ---- cut here, globalreplace.sh ----
>
> #! /bin/sh
Ah sorry, I forgot to mention I'm only just taking my first *very*
tentative steps into the wonderful world of unix. For the moment I'm
still running dos/command.com, and I've yet to take the plunge and
install one of the unix-like shells. I'm moving in that direction, but
slowly...
FWIW I had a good dig around SimtelNet in the msdos/txtutl area, and
came across several tools to do the above - one of the best being
"global search and replace" (gsar110.zip). In the longer term (when I
have more time to really get to grips with it), I'm planning on
following Martin's advice re: Perl...
Anyway, thanks for the various responses :-)
--
()---()
(0 0) Dave Scott e-mail: dave AT roborat DOT demon DOT co DOT uk
----m-( )-m-------------------------------------------------------------
=o=
- Raw text -