From owner-freebsd-questions@FreeBSD.ORG Mon Jun 2 22:35:34 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 83E0D37B401 for ; Mon, 2 Jun 2003 22:35:34 -0700 (PDT) Received: from flamingo.mail.pas.earthlink.net (flamingo.mail.pas.earthlink.net [207.217.120.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2A0C43F85 for ; Mon, 2 Jun 2003 22:35:33 -0700 (PDT) (envelope-from parv_fm@mailsent.net) Received: from sdn-ap-013dcwashp0478.dialsprint.net ([63.188.129.224] helo=moo.holy.cow) by flamingo.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 19N4SK-0001F8-00; Mon, 02 Jun 2003 22:35:32 -0700 Received: by moo.holy.cow (Postfix, from userid 1001) id 4DA87B07C; Tue, 3 Jun 2003 01:38:43 -0400 (EDT) Date: Tue, 3 Jun 2003 01:38:43 -0400 From: parv To: Adam Message-ID: <20030603053843.GA6249@moo.holy.cow> Mail-Followup-To: Adam , Joe Marcus Clarke , FreeBSD User Questions List References: <1054590763.16970.5.camel@jake> <20030603001607.GA3613@moo.holy.cow> <1054610958.16970.79.camel@jake> <1054612388.316.12.camel@gyros> <1054613446.16970.83.camel@jake> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1054613446.16970.83.camel@jake> cc: FreeBSD User Questions List Subject: Re: Listing installed ports without any ports dependent on it X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jun 2003 05:35:34 -0000 in message <1054613446.16970.83.camel@jake>, wrote Adam thusly... > > On Mon, 2003-06-02 at 23:53, Joe Marcus Clarke wrote: > > > It's not Python, but this script should work. > > > > #!/bin/sh > > > > for i in `pkg_info | cut -f1 -d ' '`; do > > if [ -z "`pkg_info -qR ${i}`" ]; then > > echo ${i} > > fi > > done > > Excellent! This does exactly what I was after! Above program gives the exact result as the one i posted, except one non essential "pkgdb" line. What did i miss? - Parv -- A programmer, budding Unix system administrator, and amateur photographer ISO employment. Details... http://www103.pair.com/parv/work/