例子以下,存在test1.txt, test2.txt, test3.txt,如今準備把這三個文件的內容都追加到testall.txt 中code
test1.txt
test
1 2 3
4 5 6文件
test2.txt
co
a b c
e f gblock
test3.txt
生成
59 9 6
z c b
cat test1.txt test2.txt test3.txt > testall.txt
, 生成以下文件:testall.txt
1 2 3
4 5 6
a b c
e f g
59 9 6
z c b
cat test* > testall.txt