From owner-freebsd-questions Thu Jan 17 23:15:49 2002 Delivered-To: freebsd-questions@freebsd.org Received: from pintail.mail.pas.earthlink.net (pintail.mail.pas.earthlink.net [207.217.120.122]) by hub.freebsd.org (Postfix) with ESMTP id 47A3537B405 for ; Thu, 17 Jan 2002 23:15:45 -0800 (PST) Received: from sdn-ar-007dcwashp291.dialsprint.net ([63.178.90.157] helo=moo.holy.cow) by pintail.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 16RTFV-000231-00; Thu, 17 Jan 2002 23:15:41 -0800 Received: by moo.holy.cow (Postfix, from userid 1001) id 0723E50B8A; Fri, 18 Jan 2002 02:17:40 -0500 (EST) Date: Fri, 18 Jan 2002 02:17:39 -0500 From: parv To: Drew Tomlinson Cc: questions@freebsd.org Subject: Re: Regular Expression Syntax - SOLVED Message-ID: <20020118071739.GC96529@moo.holy.cow> Mail-Followup-To: Drew Tomlinson , questions@freebsd.org References: <000b01c19f00$d396db20$0301a8c0@bigdaddy> <004f01c19f6f$d72336c0$c42a6ba5@lc.ca.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <004f01c19f6f$d72336c0$c42a6ba5@lc.ca.gov> 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 in message <004f01c19f6f$d72336c0$c42a6ba5@lc.ca.gov>, wrote Drew Tomlinson thusly... > ... > 4. And finally, Kent Stewart figured out what I was attempting to do > and suggested deleting all packages, installing CVSUP from packages, and > then installing portupgrade and all of it's dependencies. ah, of course, for kent is the mind reader! > Thank you all for helping me learn to tie all of the basics together to > perform more complex commands. Now I'm *REALLY* starting to understand > and appreciate the power of FBSD. in the spirit of above, the equivalent original command... pkg_info | awk '! /portupgrade|cvsup/ {print "pkg_deinstall " $1}' ...couldn't have worked by itself, unless passed to shell (untested)... pkg_info | awk '! /portupgrade|cvsup/ {print "pkg_deinstall " $1}' | sh ...or executed in a script. same difference. a better way to write the above -- not necessarily a better way for maintaining installed ports -- would be (untested)... pkg_info | awk '! /portupgrade|cvsup/ {print $1}' | xargs pkg_deinstall -f and i pray, i haven't mislead thee anymore. if so, will be pleased to be wrong. - parv -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message