cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/07/10:09:47

From: dave AT roborat DOT demon DOT co DOT uk (Dave Scott)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Global file edit?
Date: Fri, 06 Aug 1999 19:27:30 +0100 (BST)
Organization: none
Message-ID: <19990806.1827.13749snz@roborat.demon.co.uk>
References: <8D53104ECD0CD211AF4000A0C9D60AE301545D82 AT probe-2 DOT acclaim-euro DOT net>
X-Trace: mail2news.demon.co.uk 933968137 mail2news:15070 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse AT demon DOT net
X-Mail2News-Path: news.demon.net!finch-post-11.mail.demon.net!roborat.demon.co.uk
X-Newsreader: SNews 1.30+mods(jlw990606/djgpp) built: Aug 6 1999
Lines: 37
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019