How to copy a string to a text file
I am using the following command to email a tex file as an attachment-
cat mailtext.txt | elm -s "Subject" emailAddr
where content of mailtext.txt is -
"Body of email"
[include foo.txt text/plain base64]
This will attach foo.txt with the email.
My problem is that the file foo.txt is ceated dynamically everytime with a timestamp. e.g. foo_<timestamp>.txt
So if this filename is collected in a variable-
sFileName = foo_<timestamp>.txt
How do I include this filename dynamically in the mailtext.txt file?
Any help would be appreciated.
Thanks.
|