Date: Wed, 16 Jan 2002 18:58:27 -0800 From: "Drew Tomlinson" <drew@mykitchentable.net> To: "Tony Landells" <ahl@austclear.com.au> Cc: <questions@FreeBSD.ORG> Subject: Re: Regular Expression Syntax Message-ID: <003701c19f02$d6024af0$0301a8c0@bigdaddy> References: <200201170250.NAA05050@tungsten.austclear.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message ----- From: "Tony Landells" <ahl@austclear.com.au> To: "Drew Tomlinson" <drew@mykitchentable.net> Cc: <questions@FreeBSD.ORG> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003701c19f02$d6024af0$0301a8c0>