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/ |\ _,,,---,,_ [EMAIL PROTECTED] ZZZzz /,`.-'`' -. ;-;;,_ [EMAIL PROTECTED] |,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/