From owner-freebsd-questions Wed Jan 16 18:44: 9 2002 Delivered-To: freebsd-questions@freebsd.org Received: from relay04.roc.frontiernet.net (alteon01e.roc.frontiernet.net [66.133.130.235]) by hub.freebsd.org (Postfix) with SMTP id 47D1637B419 for ; Wed, 16 Jan 2002 18:44:06 -0800 (PST) Received: (qmail 9477 invoked from network); 17 Jan 2002 02:44:05 -0000 Received: from unknown (HELO blacklamb.mykitchentable.net) ([207.173.227.80]) (envelope-sender ) by relay04.roc.frontiernet.net (qmail-ldap-1.03) with SMTP for ; 17 Jan 2002 02:44:05 -0000 Received: from bigdaddy (bigdaddy [192.168.1.3]) by blacklamb.mykitchentable.net (Postfix) with SMTP id 2816FEE651 for ; Wed, 16 Jan 2002 18:44:04 -0800 (PST) Message-ID: <000b01c19f00$d396db20$0301a8c0@bigdaddy> From: "Drew Tomlinson" To: Subject: Regular Expression Syntax Date: Wed, 16 Jan 2002 18:44:04 -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 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