cat test3.txt | mailx -s " COE status ${date} <NOT OK> " emailid@server.com
I am expecting a date in the email subject but above doesnot work
i am using ksh shell
pls help
Thanks.
cat test3.txt | mailx -s " COE status ${date} <NOT OK> " emailid@server.com
I am expecting a date in the email subject but above doesnot work
i am using ksh shell
pls help
Thanks.
${} used for string operations.
use $() -- fork.
cat test3.txt | mailx -s "COE status $(date)" someone@domain.com
cat test3.txt | mailx -s "COE status on `date`" emailid@server.com
tyler_durden