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