>>是追加,>是覆盖(1)先使用echo "hello" >> temp.out,追加目前的信息到 文件 temp.out. (2)echo "hello word" > temp.out,直接清空原来的内容,填入新内容hello word,
参考:echo > 和 echo >>的区别