linux追加全部文件到新的文件(cat)

例子以下,存在test1.txt, test2.txt, test3.txt,如今準備把這三個文件的內容都追加到testall.txt 中code

test1.txttest

1 2 3
4 5 6文件

test2.txtco

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

相關文章
相關標籤/搜索