From owner-freebsd-questions Wed Dec 4 9:48:33 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2047F37B401 for ; Wed, 4 Dec 2002 09:48:33 -0800 (PST) Received: from gate21.fw.porsche.de (gate23.fw.porsche.de [193.174.9.99]) by mx1.FreeBSD.org (Postfix) with SMTP id 7F19643EAF for ; Wed, 4 Dec 2002 09:48:31 -0800 (PST) (envelope-from perisa@porsche.de) Received: (qmail 4245 invoked from network); 4 Dec 2002 17:57:39 -0000 Received: from unknown (HELO wuxin011.ibd.porsche.de) (141.36.65.1) by 193.197.149.150 with SMTP; 4 Dec 2002 17:57:39 -0000 Received: (qmail 16783 invoked from network); 4 Dec 2002 17:48:28 -0000 Received: from beastie.ibd.porsche.de (HELO porsche.de) (141.36.3.29) by smtp4cli.ibd.porsche.de with SMTP; 4 Dec 2002 17:48:28 -0000 Message-ID: <3DEE41E8.5020508@porsche.de> Date: Wed, 04 Dec 2002 18:56:56 +0100 From: Marc Perisa User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.0) Gecko/20020709 X-Accept-Language: en, de-de, es-es MIME-Version: 1.0 To: Zhihui Zhang Cc: freebsd-questions@freebsd.org Subject: Re: count the number of ports References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Zhihui Zhang wrote: > Is there a way to count the number of ports in a FreeBSD release? I guess > this boils down to how to parse the file /usr/ports/INDEX easily. > Thanks. > wc -l /usr/ports/INDEX To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message