On Tue, 5 Oct 2004, Andrew Johnson wrote:

> On Wed, 6 Oct 2004 07:12:30 +0900, Bil Kleb <Bil.Kleb / NASA.Gov> wrote:
>
>> The following is cleaner but does not follow the sed command's behavior
>> and is still too Perlish for my tastes:
>>
>>   ruby -pi -e '$_.sub!(/local\//,"") if $_=~/^#!/' public/dispatch.{rb,cgi,fcgi}
>>
>> Anyone?
>
> How about:
>
> ruby -pi -e '~/^#!/&&$_[/local\//]=""' files
>
> andrew

wow - you win!

-a
--
===============================================================================
| EMAIL   :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE   :: 303.497.6469
| A flower falls, even though we love it;
| and a weed grows, even though we do not love it. 
|   --Dogen
===============================================================================