【发布时间】:2015-09-12 00:29:08
【问题描述】:
我想在 Linux 中将以下文本附加到文件中:
echo He said "I can't append this" >> file.txt
cat file.txt
He said I can't append this
closest solution I've found 不起作用。如何在附加的字符串中包含两组引号?
【问题讨论】:
-
echo "He said \"I can't append this\"" => He said "I can't append this"
标签: bash