【发布时间】:2014-04-02 19:42:13
【问题描述】:
如何在使用 cat EOF_ 的 shell 脚本中同时使用变量和转义美元字符?
重要的是我没有使用 " 或 ' 字符。
这是我要写的文字:
cat <<- _EOF_ >> "$serverconfigdir/$siteaddress"
This is a sample text! Here is my variable below!
$usethisvariable
This is another sample text! $escapethisstring show it how it looks bla bla.
_EOF_
【问题讨论】:
标签: shell eof cat dollar-sign