I have list of excel files in a directory. I'm trying to email those files as attachment. However, when I open the email, I could see only one file as attachment. The below script is not attaching multiple files as attachment.
ls *.xls;
#echo "Test Email" | mailx -s "Testing File Conv" -a *.xls test@testmail.com
Will the above script work?