delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/14/07:26:40

From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: search and replace on multiple files
Date: 14 Mar 2000 11:00:15 GMT
Organization: Ericsson Erisoft AB, Sweden
Lines: 22
Message-ID: <8al63v$lsl$1@antares.lu.erisoft.se>
References: <38CC0B8F DOT EAEB9F25 AT hotmail DOT com> <38CC0C58 DOT 6B1CB1F4 AT hotmail DOT com> <38CDBD2D DOT 7DCB5A57 AT caresystems DOT com DOT au>
NNTP-Posting-Host: mars.lu.erisoft.se
X-Newsreader: TIN [version 1.2 PL2]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

leon (Leon AT caresystems DOT com DOT au) wrote:
: Hello

: just have discovered a way to do a global search and replace (ie on
: multiple files) in vim.

: It does however requiers the use of key mappings etc.

: Was just wondering - if there is some binutil with djgpp distribution
: which will allow for multifile search and replace.

: and if such exists then where would i be able to read on it?

Perl: "perl -i -ne 's/old text/new text/; print' one_file.txt
another_file.txt"

For more on perl see <http://www.perl.com/>.


Right,

							MartinS

- Raw text -


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