1.覆盖 echo "string" > filename
2.追加 echo "string" >> filename
echo追加字符串到文件末尾
原文:https://www.cnblogs.com/books2read/p/11049689.html