Hi All,
I have to send some files as attachments to an email using mailx copmmand in a shell script.
The files will be generated by some other application everyday with names starting with the literal 'Send' followed by some random sequence of characters in the filenames.
I tried using * wildcard like below:
mailx -a /dir/Send*
user@domain.com
However, while executing the script, it picks up only the first file it finds matching the filename and does not pickup remaining files with the similar name format.
The number of files will be varying every day as like their filenames. Only string common in the filenames will be 'Send' in the beginning. I have to send all the files in the directory matching the filenames Send*
Can anyone please help me out? Thanks in advance.