Date: Wed, 12 Dec 2007 11:16:37 +0000 From: Alexey Dokuchaev <danfe@FreeBSD.org> To: Matthias Schmidt <xhr@gmx.net> Cc: Doug Barton <dougb@FreeBSD.ORG>, d@delphij.net, cvs-src@FreeBSD.ORG, obrien@FreeBSD.ORG, src-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, Kirill Ponomarew <krion@FreeBSD.ORG> Subject: Re: cvs commit: src/usr.sbin/pkg_install Makefile src/usr.sbin/pkg_install/add pkg_add.1 src/usr.sbin/pkg_install/create pkg_create.1 src/usr.sbin/pkg_install/delete pkg_delete.1 src/usr.sbin/pkg_install/info pkg_info.1 src/usr.sbin/pkg_install/search Makefile pkg_search.1 ... Message-ID: <20071212111637.GA18577@FreeBSD.org> In-Reply-To: <20071211083541.GB46695@staatsfeind.org> References: <200712091101.lB9B1w0C070261@repoman.freebsd.org> <20071210180238.GA93589@dragon.NUXI.org> <475D8C81.9010805@FreeBSD.org> <475D9217.6010506@delphij.net> <20071211083541.GB46695@staatsfeind.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Dec 11, 2007 at 09:35:41AM +0100, Matthias Schmidt wrote: > case "$1" in > -i) > awk -F\| -v name="$2" \ > '{\ > if ($1 ~ name) { \ > split($2, a, "/"); \ > printf("Name\t: %s-50\nDir\t: %-50s\nDesc\t: %-50s\nURL\t: %-50s\nDeps\t: %s\n\n", $1, $2, $4, $10, $9); \ > } > }' ${INDEXDIR}${INDEXFILE} Backslashes @ EOL for embedded awk(1) code look ugly and can easily be dropped. ./danfe
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071212111637.GA18577>