Re: Message count1999-03-25 08:04:13Tim Walberg wrote, | Not 100% bullet proof, but try | cat ${MAILFILE} | grep '^From ' | wc -l If you use that method, it can be done in one process rather than three: grep -c '^From ' ${MAILFILE} The braces are optional but harmless. That it can be done in only one process is the only reason for using that shortcut. If you're going to use multiple processes, this is closer to being 100% bullet-proof: formail -s echo < $MAILFILE | wc -l or FILENO=1 formail -s printenv FILENO < $MAILFILE | tail -1
|
|