On Wed, 24 Mar 1999 15:27:29 +0100, "Maciej Donotek"
<md(_at_)dale(_dot_)inet(_dot_)com(_dot_)pl> wrote:
I'd like to get number of messages saved to given mail folder using
just simple unix command (like grep, wc etc.) from script. Is there
some non-redundant (one per message) text token to use? I've tried
Depending slightly on what format exactly you are using, something
like grep -c '^From ' should work nicely. The counts will be off if
something somehow manages to get invalid From_ lines into that file,
but here, I find the count to always be accurate for my Berkeley
mbox-format files.
Hope this helps,
/* era */
--
.obBotBait: It shouldn't even matter whether <http://www.iki.fi/era/>
I am a resident of the state of Washington. <http://members.xoom.com/procmail/>
* Sign the European spam petition! <http://www.politik-digital.de/spam/en/> *