From owner-freebsd-questions Wed Dec 4 9:31:37 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 785AF37B401 for ; Wed, 4 Dec 2002 09:31:36 -0800 (PST) Received: from slate.dublin.wbtsystems.com (slate.dublin.wbtsystems.com [193.120.231.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F13A43E88 for ; Wed, 4 Dec 2002 09:31:35 -0800 (PST) (envelope-from barry.byrne@wbtsystems.com) Received: from spiral (spiral.dublin.wbtsystems.com [193.120.231.190]) (authenticated bits=0) by slate.dublin.wbtsystems.com (8.12.6/8.12.6) with ESMTP id gB4HUika072612; Wed, 4 Dec 2002 17:30:44 GMT From: "Barry Byrne" To: "Zhihui Zhang" , Subject: RE: count the number of ports Date: Wed, 4 Dec 2002 17:30:42 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: X-WBT-Authenticated-User: bb X-Scanned-By: slate/MIMEDefang 2.27 (www . roaringpenguin . com / mimedefang) 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 How about: wc /usr/ports/INDEX - Barry -- Barry Byrne, IT Manager, WBT Systems, Block 2, Harcourt Centre Harcourt Street, Dublin 2, Ireland > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Zhihui Zhang > Sent: 04 December 2002 17:21 > To: freebsd-questions@FreeBSD.ORG > Subject: count the number of ports > > > > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message