4
echo usage: sendshar mail_address_list
7
set stub = tcgmsg.4.04.shar
9
# Build up first message
11
set msgfile = /tmp/msg.$$
12
set tmpfile = /tmp/tmp.$$
17
Remove the mail header and trailing mail junk from each of the
18
following files, concatenate them and run the resulting
23
Output of wc and sum on each file:
26
foreach file (../$stub.??)
27
echo $file `sum $file` >> $msgfile
31
# actually send the stuff
35
mail -s 'TCGMSG split shar file following' $to < $msgfile
37
foreach file (../$stub.??)
38
echo sending $file to $to
40
echo '-- CUT HERE -- ' > $tmpfile
42
echo '-- CUT HERE -- ' >> $tmpfile
43
mail -s $file $to < $tmpfile