【发布时间】:2014-06-03 20:26:35
【问题描述】:
我可以使用下面的命令通过硬编码来改变目标的值。
sed -ie s/^target=.*/target=google.com/ url.properties
但如果我使用变量,我就会出错。我不知道 sed 命令是如何工作的。我只需要设置构建系统就可以了。
url = google.com
sed -ie s/^target=.*/target=$url/ url.properties
错误是 sed: -e expression #1, char 25: unterminated `s' command
【问题讨论】: