From owner-freebsd-questions Wed Dec 4 9:21:30 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 441BE37B401 for ; Wed, 4 Dec 2002 09:21:30 -0800 (PST) Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FFF443E9C for ; Wed, 4 Dec 2002 09:21:29 -0800 (PST) (envelope-from zzhang@cs.binghamton.edu) Received: from opal (cs.binghamton.edu [128.226.123.101]) by bingnet2.cc.binghamton.edu (8.11.6/8.11.6) with ESMTP id gB4HLNJ19007 for ; Wed, 4 Dec 2002 12:21:23 -0500 (EST) Date: Wed, 4 Dec 2002 12:21:27 -0500 (EST) From: Zhihui Zhang X-Sender: zzhang@opal To: freebsd-questions@freebsd.org Subject: count the number of ports 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 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. -Zhihui To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message