页次: 1
sort 可以用来合并文件, 但是文件是要排序好的文件。
是一个示例
[root@qd ~]# cat a.txt 1 this is one 3 this is three [root@qd ~]# cat b.txt 2 this is two 4 this is four [root@qd ~]# sort -m a.txt b.txt -o new.txt [root@qd ~]# cat new.txt 1 this is one 2 this is two 3 this is three 4 this is four
ipbbs.net
离线
页次: 1