This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Binary patch tool?
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Ronald Landheer-Cieslak <ronald at landheer dot com>
- Cc: cygwin at cygwin dot com
- Date: Fri, 4 Apr 2003 10:43:49 -0500 (EST)
- Subject: Re: Binary patch tool?
- Reply-to: cygwin at cygwin dot com
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/