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