- 论坛徽章:
- 0
|
[root@localhost test]# cat video.txt
Boys in Company C:HK48:192:2192
Alien:HK57:119:1982
The Hill:KL23:63:2972
Aliens:HK11:532:4892
Star Wars:HK38:301:4102
A Few Good Men:KL87:445:5851
Toy Story:HK65:239:3972
[root@localhost test]# cat video2.txt
Crimson Tide:134:2031
Die Hard:152:2981
[root@localhost test]# sort -t: -k3 -m video.txt video2.txt
Boys in Company C:HK48:192:2192
Alien:HK57:119:1982
Crimson Tide:134:2031
Die Hard:152:2981
The Hill:KL23:63:2972
Aliens:HK11:532:4892
Star Wars:HK38:301:4102
A Few Good Men:KL87:445:5851
Toy Story:HK65:239:3972
sort -m合并文件后,是否在合并是不能排序,我使用了-k3,但是结果貌似没有排序,请教,谢谢 |
|