Pipes WAS Re: [Sussex] linux command line

Thomas Adam thomas at edulinux.homeunix.org
Thu Jan 13 17:52:44 UTC 2005


On Thu, Jan 13, 2005 at 05:48:32PM -0000, Mark Harrison wrote:
> cat log.txt | grep "error" | sort -u

> Mark Proudly using pipes since 1989 :-)

Except you win the UUoCA (Useless Use of Cat Award) for that command.

grep error ./log.txt | sort -u

... is much better.

-- Thomas Adam

-- 
I know nothing, and understand even less.




More information about the Sussex mailing list