我通过将数据库中的一些行读取到名为 EMAIL_DESC 的多行 shell 变量中来构建电子邮件消息:
EMAIL_DESC=`run "select text from ETL.MAIL_TEXT where ID=1 order by id, text_order"`
不幸的是,我在 $EMAIL_DESC 中有变量和命令 ( date
),但我无法以任何方式替换它们。
echo "$EMAIL_DESC"
Please be aware that all user tables and views on the $SERVER_DESC
Ended = `date`.
任何的想法?