Date: 13 Mar 2002 19:09:17 -0800 From: swear@blarg.net (Gary W. Swearingen) To: Pete Fritchman <petef@databits.net> Cc: "Gary W. Swearingen" <swear@blarg.net>, 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: <27pu27976q.u27@localhost.localdomain> In-Reply-To: <20020313191731.C74180@databits.net> References: <20020312214509.3616bdd5.johann@broadpark.no> <15502.28105.634074.758224@guru.mired.org> <rku1rk8274.1rk@localhost.localdomain> <20020313191731.C74180@databits.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Pete Fritchman <petef@databits.net> writes: > [ long script snipped ] > > ... or you could make this a lot simpler on yourself: > > #!/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? 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?27pu27976q.u27>