From owner-freebsd-questions@FreeBSD.ORG Tue Jan 4 22:12:49 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 360B1106566C for ; Tue, 4 Jan 2011 22:12:49 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id B9D648FC08 for ; Tue, 4 Jan 2011 22:12:48 +0000 (UTC) Received: by wyf19 with SMTP id 19so14894279wyf.13 for ; Tue, 04 Jan 2011 14:12:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=arMbaDxmX9Fe1hZZR7PYbE1E+ryMb2xnb99KPxySiqI=; b=pBXwQt4QiUwTegV3oatJ76h0FuZOBLbPlCugpZVxN/Cn68hJWKMAsRE+AetZ1N9W5g 9xLPpO79aIVrLwFn8lur+/2AuGXAE5LxYZ9uWFJF/fWVAQUcTFtSSfL463BDBakcorJj qlAUbCvXzOX30d2ld7os10he3mklwM1SjGm6I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=R19rTR7o03Wpm950sFT78CYpMn4cEEBsFWlqRJBkyjuMV8LLRDK6dyPtbX9fBnLYP0 B0yah4J7J6He+JSE+YwuORLVetCbnsHScZ+yEZs+LO72m5JELok+KwcbFQR8T8X+mXEl YscHHzuNeoB2kzOTIuYQ6VeYvT5419MZbLnvs= Received: by 10.216.154.134 with SMTP id h6mr5738436wek.65.1294179167738; Tue, 04 Jan 2011 14:12:47 -0800 (PST) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk [87.194.105.247]) by mx.google.com with ESMTPS id n11sm10819441wej.19.2011.01.04.14.12.45 (version=SSLv3 cipher=RC4-MD5); Tue, 04 Jan 2011 14:12:46 -0800 (PST) Date: Tue, 4 Jan 2011 22:12:42 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20110104221242.35a1710f@gumby.homeunix.com> In-Reply-To: <16ABD485-4B26-47C4-AD19-6B84AB497874@vicor.com> References: <117654.42578.qm@web121409.mail.ne1.yahoo.com> <4D231CB7.2060902@teambox.fr> <86pqsc3774.fsf@red.stonehenge.com> <16ABD485-4B26-47C4-AD19-6B84AB497874@vicor.com> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; i386-portbld-freebsd8.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: a perl question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2011 22:12:49 -0000 On Tue, 4 Jan 2011 10:01:47 -0800 Devin Teske wrote: > > On Jan 4, 2011, at 9:33 AM, Randal L. Schwartz wrote: > > >>>>>> "Patrick" == Patrick Bihan-Faou > >>>>>> 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.