On Friday, March 1, 2002, at 05:49 , Dan Nelson wrote:

> In the last episode (Mar 02), Daniel O'Connor said:
>> On Fri, 2002-03-01 at 21:19, Danny Braniss wrote:
>>> fstat | awk '{print $8}' | egrep 'tty[pqrsPQRS]' | sort -u | wc -l
>>>
>>> is IMHO correct, ;-)
>>
>> Ach, of course :)
>> I hope the original poster is satisfied 8-)
>
> Easier might be "pstat -t | grep 'tty[pqrsPQRS]' | wc -l"

pstat -t | grep -ic 'tty[pqrs]'

saves a fork. Since we're being silly.


Joe


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

Reply via email to