[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: overnet, mldonkey, which one??



* Mark Ferlatte (ferlatte@cryptio.net) [030904 15:16]:
> Couldn't help it:
> 
> "Useless use of cat award!"
> 
> Olivier Robert said on Fri, Sep 05, 2003 at 12:08:08AM +0200:
> >  : :'  :    # cat Earth | sed -e s/microsoft/debian/g > Better_World
> 
> 
> sed -e s/microsoft/debian/g < Earth > Better_World

Or this less-frequently-seen form:

< Earth sed -e s/microsoft/debian/g > Better_World

I prefer it on the one hand because it's a more accurate visual
representation of the logical data pipeline, but it is less idiomatic.  
Of course, sed can take a filename, so this is probably the best:

sed -e s/microsoft/debian/g Earth > Better_World

Although, I think the regex replacement might be too simplistic.  Would
"Debian Windows XP" really make the world a better place?  ;-)

How about s/microsoft//g ?

good times,
Vineet
-- 
http://www.doorstop.net/
-- 
#include<stdio.h>
int main() {
    puts("Reader! Think not that \n"
         "technical information \n"
         "ought not be called speech;");
    return 0;
}

Attachment: pgpr7G8VTNqzV.pgp
Description: PGP signature


Reply to: