關於重定向符>>與>的區別與作用

alan00000發表於2012-11-29

echo "hello"> a.txt

echo hello >a.txt

hello覆蓋a.txt內的內容

echo "hello">>a.txt

echo hello>>a.txt

在a.txt的結尾追加hello


相關文章