procmail
[Top] [All Lists]

Re: Message count

1999-03-25 14:23:53
Replying to message of Wed, 24 Mar 1999 12:01:46 -0600
        from Tim Walberg <walberg(_at_)cig(_dot_)mot(_dot_)com>
        regarding ``Re: Message count''
        
Not 100% bullet proof, but try
cat ${MAILFILE} | grep '^From ' | wc -l

Heh... where's that Useless Use of cat Award ?

The same thing can be written

        grep '^From ' ${MAILFILE} | wc -l

which is slightly more efficient.

TjL


<Prev in Thread] Current Thread [Next in Thread>