delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/04/10:44:07

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Fri, 4 Apr 2003 10:43:49 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Ronald Landheer-Cieslak <ronald AT landheer DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Binary patch tool?
In-Reply-To: <Pine.LNX.4.44.0304041204130.23554-100000@localhost.localdomain>
Message-ID: <Pine.GSO.4.44.0304041023470.21921-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Fri, 4 Apr 2003, Ronald Landheer-Cieslak wrote:

> On Thu, 3 Apr 2003, Igor Pechtchanski wrote:
> > vim -b -c ":%s/xygwin1.dll/cygwin1.dll/g|:wq" $f
> >
> > Ain't vim grand? ;-)
> Wow [takes hat off and bows deeply to Vim]
>
> I use Vim on a daily basis for nearly all my source file editing, but I'd
> never used it as a stream editor before - too cool :)
>
> Thanx Igor!
> rlc

Well, technically, the above will not act as a "stream editor", as it
still edits (and saves) the files...  A stream editor would be something
like

cat $f | vim -b -c ":se t_ti= t_te= nosc |:sil %s/xygwin1.dll/cygwin1.dll/g|:%p |:q!" > new-$f

except I can't quite figure out how to turn off the display codes and
the "Vim: Reading from stdin..." message (perhaps others will know how).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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