From owner-freebsd-questions Wed Jan 16 19: 2:51 2002 Delivered-To: freebsd-questions@freebsd.org Received: from relay02.roc.frontiernet.net (alteon01g.roc.frontiernet.net [66.133.130.237]) by hub.freebsd.org (Postfix) with SMTP id 494E737B4EB for ; Wed, 16 Jan 2002 19:01:17 -0800 (PST) Received: (qmail 20951 invoked from network); 17 Jan 2002 03:01:16 -0000 Received: from unknown (HELO blacklamb.mykitchentable.net) ([207.173.227.80]) (envelope-sender ) by relay02.roc.frontiernet.net (qmail-ldap-1.03) with SMTP for ; 17 Jan 2002 03:01:16 -0000 Received: from bigdaddy (bigdaddy [192.168.1.3]) by blacklamb.mykitchentable.net (Postfix) with SMTP id A772AEE651; Wed, 16 Jan 2002 19:01:14 -0800 (PST) Message-ID: <004f01c19f03$39d0fb80$0301a8c0@bigdaddy> From: "Drew Tomlinson" To: "Tony Landells" Cc: References: <200201170250.NAA05050@tungsten.austclear.com.au> <003701c19f02$d6024af0$0301a8c0@bigdaddy> Subject: Re: Regular Expression Syntax Date: Wed, 16 Jan 2002 19:01:14 -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: "Drew Tomlinson" To: "Tony Landells" Cc: Sent: Wednesday, January 16, 2002 6:58 PM Subject: Re: Regular Expression Syntax > ----- 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 Never mind. The -v switch *does* work. It's my eyes that don't. Thanks, Drew > 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 > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message