a perl question

RW rwmaillists at googlemail.com
Tue Jan 4 22:12:49 UTC 2011


On Tue, 4 Jan 2011 10:01:47 -0800
Devin Teske <dteske at vicor.com> wrote:

> 
> On Jan 4, 2011, at 9:33 AM, Randal L. Schwartz wrote:
> 
> >>>>>> "Patrick" == Patrick Bihan-Faou
> >>>>>> <patrick.bihan-faou at teambox.fr> writes:
> > 
> > Patrick> cat asdf.txt | grep -v XYZ | grep -v bla
> > 
> > And yet, you still have the "Useless Use of Cat".
> 
> I know I'm joining the party late, but... what about:
> 
> grep -Ev '(XYZ|bla)' asdf.txt
> 
> or
> 
> awk '!/XYZ/ && !/bla/ {print}' asdf.txt
> 
> ok... end useless contribution.

It's odd that people seem to be taking bla-bla so literally, when it's
clearly a place holder for arbitary text. 


More information about the freebsd-questions mailing list