[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-...
by yanjin415 - Shell - 2009-03-04 09:54:41 阅读(3611) 回复(16)
经过这几天对OS390的理解,基本上熟悉了jcl语言. jcl语言是JOB CTRL Language,顾名思义,也就是说,OS390中的COBOL语言不能自己去实现本身的功能.需要jcl语言对它进行操作. jcl语言中可以分为3大部分,JOB的声明: XXXXXXA JOB CLASS=A,MSGCLASS=H,MSGLEVEL=(1,1),NOTIFY=&SYSUID 其中XXXXXXA为JOB的名字, JOB的名字可以随便去起,但是一般情况下是用你的USERID+一个字付,因为你需要看你返回的LOG , JOB为声明用,就好比INT I; 声明一个I变...
怎样对第二列排序 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 怎么写?