邮件脚本中使用的SED命令出错

时间:2012-09-17 10:54:17

标签: shell unix sed mailing

我用过这个

$ rc = system("sed -e 's/Monyear/$Month//g' <
  $Script_Path/Mailcontent.txt.template > $Script_Path/Mailcontent.txt");

在邮件脚本中

我收到错误

sed: -e expression #1, char 19: unknown option to `s'

1 个答案:

答案 0 :(得分:4)

你有一个/太多了。这样做:

s/Monyear/$Month/g
相关问题