I want to add current date to the file name. when sending an email with attachment.
#!/bin/sh clear now=`date +"%m_%d_%Y"` mutt -s "Reports $now" email@example.com -a /path/Reports.xlsx < /path/mailmessage.txt
However, I want the current date with filename instead in email subject. As the file is modified daily and sent out through email.
eg: Reports_08032017.xlsx when received in email.
Is it possible?
Any help is appreciated.