I have a brief question regarding a script I am writing. Please
respond via email ( david(_at_)stuffage(_dot_)com) as I am not a subscriber to
this list. Thank you all ahead of time.
I use the following script to re-write incoming email messages, I
want to limit the message body to the first 20 lines. My question
is, within the following script how would I , or could I do that?
#!/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
export PATH
formail -k -X From: -X Subject: >> /tmp/david.test.$$
mail -s "David Reynolds" david(_at_)stuffage(_dot_)com <
/tmp/david.pager.$$ rm /tmp/david.test.$$
My original thought was to use something like this:
head -20 /tmp/david.test.$$
but it didnt work either, it piped the output to the screen, not to
the file.
Thanks again all!!
P.S. Feel free to make fun of the script, change it around or
otherwise humiliate me :)
--
Earthstar Communications Inc. (http://www.stuffage.com)
"Your total communications solution"
David Reynolds, President
david(_at_)stuffage(_dot_)com
david(_dot_)pager(_at_)stuffage(_dot_)com - pager
(603) 672-5545 david(_dot_)fax(_at_)stuffage(_dot_)com - fax