Date: Wed, 13 Mar 2002 22:27:26 -0500 From: Pete Fritchman <petef@databits.net> To: "Gary W. Swearingen" <swear@blarg.net> Cc: Mike Meyer <mwm-dated-1016399178.2f0590@mired.org>, "J.S." <johann@broadpark.no>, freebsd-questions@FreeBSD.ORG, ports@FreeBSD.ORG Subject: Re: Ports collection falling behind Message-ID: <20020313222726.A83337@databits.net> In-Reply-To: <27pu27976q.u27@localhost.localdomain>; from swear@blarg.net on Wed, Mar 13, 2002 at 07:09:17PM -0800 References: <20020312214509.3616bdd5.johann@broadpark.no> <15502.28105.634074.758224@guru.mired.org> <rku1rk8274.1rk@localhost.localdomain> <20020313191731.C74180@databits.net> <27pu27976q.u27@localhost.localdomain>
next in thread | previous in thread | raw e-mail | index | archive | help
++ 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020313222726.A83337>