[root@localhost test]# sort -t: +1 video.txt sort: open failed: +1: No such file or directory 我的系统是Fedora 10,是不是sort不再支持+n选项了? 备注sort的帮助: [root@localhost test]# sort --help Usage: sort [OPTION]... [FILE]... Write sorted concatenation of all FILE(s) to standard output. Mandatory arguments to long options are mandatory for short options too. Ordering options: -b, --ignore-...
怎样对第二列排序 10712 10.23.125.128 10713 10.22.236.8 10714 10.21.253.127 10715 10.23.2.242 10716 10.23.16.226 10717 10.23.38.61 10718 10.22.236.8 10719 10.21.164.104 10720 10.23.252.202 10721 10.21.29.74 10722 10.23.220.176 谢谢!
本来是发在python板块的,但没人回答,而且觉得可能跟shell有关系,就又发在这里了! 我有个一python程序,需要调用如下的sort命令: sort -t@ -rink1 /data1/admatch//datamanager/logAna//his//maxRate/stats/20080523/1_max_rate.dat.tmp -T /data2/search/.sortTmp/|head -n100 > /data1/admatch//datamanager/logAna//his//maxRate/stats/20080523/1_max_rate.dat python执行的时候经常会输出如下的错误: sort: write fai...
按第二列排序,第五列保持不变 cat file1: 123,37,39,4,1 123,36,39,4,1 123,37,39,4,0 希望的排序结果: 123,36,39,4,1 123,37,39,4,1 123,37,39,4,0 Shell code:sort -t, +1n -4n 1 [ 本帖最后由 moog 于 2008-5-12 11:35 编辑 ]
文件a e 9 e 5 d 3 d 2 a 1 a 0 如何让它变成 e 5 e 9 d 2 d 3 a 0 a 1 ---------------------------------------------------- 用sort 怎么写?