Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jan 2002 18:44:04 -0800
From:      "Drew Tomlinson" <drew@mykitchentable.net>
To:        <questions@freebsd.org>
Subject:   Regular Expression Syntax
Message-ID:  <000b01c19f00$d396db20$0301a8c0@bigdaddy>

next in thread | raw e-mail | index | archive | help
I've been beating my head and just can get the syntax of this right.
This expression works:

blacklamb> pkg_info | egrep "portupgrade|cvsup" | awk '{print
"pkg_deinstall " $1}'
pkg_deinstall cvsup-16.1_3
pkg_deinstall portupgrade-20011210

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.

TIA,

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?000b01c19f00$d396db20$0301a8c0>