Hello
I have to attach multiple file as an email attachment. here is what i my understanding so far:
- search in a certain directory that is there any specific file say for example .xml file exist or not
- if exist then take those file name from the folder and attach it to another text file
- then run a loop in that text file. pick the first file name from that text file and send it as attachment to the email. run the loop until the end of that text file.
- i dont want to use zip options
- a for loop would do the work but i am new to the shell script so i dont know what is the proper statement or how to write it.
i have looked into other similar thread but didn't get anything. any suggestion would be appreciated:)