This topic created in 3863 days ago, the information mentioned may be changed or developed.
echo "你好 "v2ex" " >>v2ex.txt
本来想要显示你好 "v2ex"
实际只显示 你好 v2ex
如何也让双引号也被输入进去。
5 replies • 2016-04-15 05:52:17 +08:00
 |
|
\"
|
 |
|
两个方法
1. echo '你好 "v2ex" ' >>v2ex.txt
2. echo "你好 \"v2ex\" " >>v2ex.txt
|
 |
|
还有第三种: echo 你好\ V2EX >> v2ex.txt
|
 |
|
漏了引号 echo 你好\ \"v2ex\" >> v2ex.txt
|