> What I really want to do is the following:
> 
> msg=$(msg)\n"new message"
> msg=$(msg)\n"new message"
> msg=$(msg)\n"new message"
> msg=$(msg)\n"new message"

Put it all in quotes:

   msg="$(msg)\nnew message" 
    
> cat msg |mail -s REPORT [EMAIL PROTECTED]

cat is for files not variables and you need a $ before msg:

   echo -e $msg | mail -s REPORT [EMAIL PROTECTED]



-- 
Ian



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to