Hi
I am writing a shell script to process a message folder and output only
the last "X" number of messages. I can use the +skip switch of formail,
but initially my script has to find out how many messages are there in the
folder, and then skip TOTAL-X messages.
This will output numbers sequentially, everytime formail splits a message:
#! /bin/csh -f
formail -s csh -c 'cat > /dev/null; echo $FILENO' < $1
Is there a way to get formail to give me only the final number in the
series? I realize this may be just a matter of shell programming, not a
formail question, but it may also be much more obvious than I think, and I
could use the help!
Thanks in advance
Antonio
Halifax, Canada