Re: count the number of ports

2002-12-04 Thread Marc Perisa
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 [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



RE: count the number of ports

2002-12-04 Thread Barry Byrne
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: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Zhihui Zhang
> Sent: 04 December 2002 17:21
> To: [EMAIL PROTECTED]
> 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 [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
> 

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



count the number of ports

2002-12-04 Thread Zhihui Zhang

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 [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message