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

相关文章
相关标签/搜索