I am trying to write a shell script for which 1st 2nd and 3rd...n argument contains multiple words
MAILING_LIST="abc@gmail.com xyz@gmail.com zed@gmail.com"
echo $MAILING_LIST
mailing "Error in Job" " There were some records that couldn't be loaded into DB" " " $MAILING_LIST
Now i only want to print my mailing list in the function so that i can use that to send the email
obviously no of mails in mailing list can change and so forth .
Kindly help me with this issue.
P.S if i use echo $#
it gives me no of args as 6
now my requirement is to print/get the mailing list only in my function ..