From owner-freebsd-questions Wed Mar 13 19:46: 9 2002 Delivered-To: freebsd-questions@freebsd.org Received: from hex.databits.net (hex.csh.rit.edu [129.21.60.203]) by hub.freebsd.org (Postfix) with SMTP id 2FAC337B400 for ; Wed, 13 Mar 2002 19:46:01 -0800 (PST) Received: (qmail 83352 invoked by uid 1001); 14 Mar 2002 03:27:26 -0000 Date: Wed, 13 Mar 2002 22:27:26 -0500 From: Pete Fritchman To: "Gary W. Swearingen" Cc: Mike Meyer , "J.S." , freebsd-questions@FreeBSD.ORG, ports@FreeBSD.ORG Subject: Re: Ports collection falling behind Message-ID: <20020313222726.A83337@databits.net> References: <20020312214509.3616bdd5.johann@broadpark.no> <15502.28105.634074.758224@guru.mired.org> <20020313191731.C74180@databits.net> <27pu27976q.u27@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <27pu27976q.u27@localhost.localdomain>; from swear@blarg.net on Wed, Mar 13, 2002 at 07:09:17PM -0800 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 ++ 13/03/02 19:09 -0800 - Gary W. Swearingen: | > #!/bin/sh | > awk -F\| '/^$1-/ { print $6 }' /usr/ports/INDEX | | Nice! Except that's the wrong "$1" and it handles "xemacs" poorly too | (and doesn't handle non-installed packages, an unlikely need). | | This lets the user do some of the work (and I might remove "/^" and "-"): | | awk -F\| '/^'${1}'-/ { printf "%-40s %s\n", $1, $6 }' /usr/ports/INDEX | tr ' ' '.' | | | Maybe the lesson here is to not post scripts. Does it start too many | long threads? Well, my point wasn't really to refine shell scripts or anything silly like that.. just pointing out that the information is available in /usr/ports/INDEX. :) --pete -- Pete Fritchman [petef@(databits.net|freebsd.org|csh.rit.edu)] finger petef@databits.net for PGP key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message