From owner-freebsd-questions Wed Oct 3 21:30: 9 2001 Delivered-To: freebsd-questions@freebsd.org Received: from andrsn.stanford.edu (andrsn.Stanford.EDU [171.66.112.163]) by hub.freebsd.org (Postfix) with ESMTP id E491237B407 for ; Wed, 3 Oct 2001 21:30:02 -0700 (PDT) Received: from localhost (andrsn@localhost.stanford.edu [127.0.0.1]) by andrsn.stanford.edu (8.9.3/8.9.1) with ESMTP id VAA82400; Wed, 3 Oct 2001 21:25:55 -0700 (PDT) Date: Wed, 3 Oct 2001 21:25:55 -0700 (PDT) From: Annelise Anderson To: "Gary W. Swearingen" Cc: Nathan Mace , questions@FreeBSD.ORG Subject: Re: favorite ports? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On 3 Oct 2001, Gary W. Swearingen wrote: > Mike Meyer writes: > > > $ cd /usr/ports > > $ find . -maxdepth 3 -name pkg-descr | xargs more > > Nice idea. I wondered by find's -exec wasn't used and I > found out why, but at least it starts faster: > > find /usr/ports -maxdepth 3 -name pkg-descr -exec \ > sh -c "echo @@@@@ {} @@@@@ ; less -P '%f' {} " \; > I use this script in /usr/ports (which I call getdescr) with the name of the category I'm interested in, e.g., ./getdescr mail | more #!/bin/sh for i in $1/* ; do if [ -d $i ]; then echo " " echo $i echo " " cat $i/pkg-descr fi done exit; If send to a file, this produces a nice readable format. The entire set of pkg-descr files is some 800 or more pages. I tried to list and comment on a few of the 5000 (at the time--there are now closer to 6000) software programs in my book; I excluded foreign-language offerings (about 600) and programming stuff, concentrating on those of more immediate interest to individual users (rather than ISPs and sysadmins etc.). Even then it was quite a task. Annelise -- Annelise Anderson Author of: FreeBSD: An Open-Source Operating System for Your PC Available from: mall.daemonnews.org and amazon.com Book Website: http://www.bittreepress.com/FreeBSD/introbook/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message