I need to attach all files starting with 'BusinessReport' using mutt command.
It could be any number of files in that directory, say BusinessReport_01, BusinessReport_03, BusinessReport_04 etc.
Is there a way to attach all files where filename like BusinessReport_* and sent it using mutt command? Please help.
Hi.
I don't have a specific example, but:
-a file [...] Attach a file to your message using MIME. To attach multiple files, separating filenames and recipient addresses with "--" is mandatory, e.g. mutt -a img.jpg *.png -- addr1 addr2. -- excerpt from man mutt, q.v.
for
Mutt 1.5.18 (2008-05-17)
Best wishes ... cheers, drl
mutt -s "Subject:`date +"%b %d"` " -a $tmp/BusinessReport_* -- email@abc.com < message_body
This attaches all files starting with the name BusinessReport_