1 2 3 4 5 6 7 8 9 10
#!/bin/sh size=${1:-0} ( echo "This mail was generated on "`date`"." ) | mail -s "${size}k test mail from process $$" esr@ccil.org <<EOF EOF