From owner-freebsd-questions Wed Jan 16 18:58:32 2002 Delivered-To: freebsd-questions@freebsd.org Received: from relay03.roc.frontiernet.net (alteon01h.roc.frontiernet.net [66.133.130.238]) by hub.freebsd.org (Postfix) with SMTP id 25AE337B405 for ; Wed, 16 Jan 2002 18:58:29 -0800 (PST) Received: (qmail 9463 invoked from network); 17 Jan 2002 02:58:28 -0000 Received: from unknown (HELO blacklamb.mykitchentable.net) ([207.173.227.80]) (envelope-sender ) by 0 (qmail-ldap-1.03) with SMTP for ; 17 Jan 2002 02:58:28 -0000 Received: from bigdaddy (bigdaddy [192.168.1.3]) by blacklamb.mykitchentable.net (Postfix) with SMTP id 39D03EE651; Wed, 16 Jan 2002 18:58:27 -0800 (PST) Message-ID: <003701c19f02$d6024af0$0301a8c0@bigdaddy> From: "Drew Tomlinson" To: "Tony Landells" Cc: References: <200201170250.NAA05050@tungsten.austclear.com.au> Subject: Re: Regular Expression Syntax Date: Wed, 16 Jan 2002 18:58:27 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ----- Original Message ----- From: "Tony Landells" To: "Drew Tomlinson" Cc: Sent: Wednesday, January 16, 2002 6:50 PM Subject: Re: Regular Expression Syntax > drew@mykitchentable.net said: > > How can I get the opposite? In other words, everything except cvsup > > or portupgrade? I know about the ! and () for grouping but can't seem > > to get it in the right place. Help. > > What, you mean something like... > > -v, --invert-match > Invert the sense of matching, to select non-match- > ing lines. > > from the grep/egrep/fgrep/zgrep man page? Thanks for your response. I just tried that and it returned everything but the cvsup. But it did return the portupgrade line which I don't want. I know from reading somewhere that I'm supposed to be able to take the "portupgrade|cvsup" and negate the expression to mean "every line except those containing portupgrade or cvsup". Thanks, Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message