我有2个档案
档案1:
01:12:00,001 Some text
01:14:00,003 Some text
02:12:01,394 Some text
档案2:
01:12:00,001 Some text
01:12:01,029 Some text
01:13:21,123 Some text
我需要如下输出:
01:12:00,001 Some text
01:12:00,001 Some text
01:12:01,029 Some text
01:13:21,123 Some text
01:14:00,003 Some text
02:12:01,394 Some text
我怎样才能做到这一点?
因为您要按文件中字段显示的顺序对文件进行排序,所以这是最基本的用法sort
:
sort file1 file2 > outputfile
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句