I want to send a text file via "mail". Before I pass the file to mail, I want
to insert at the top of the file a subject line of "Subject: < report name>".
I would dearly like to do this without using temporary files, etc. but I can't
find a way of doing it. I've tried echoing text through pipes, cating the
mail file various ways to try and prefix it with the subject line. I've looked
at sed but, not being a sed expert, I haven't found a solution that way either.
Before anyone asks, there isn't a switch to pass the subject to the mail
command. 8-(
Does anyone know of a one line solution to do this without the creation of
temporary files?
Thanks
Andrew Scott.
=====
Development Centre, IS.
AT&T Global Information Solutions,
Kingsway West, Dundee, Scotland DD2 3XX
Tel: +44 382 592531 Fax: +44 382 622198