[root@test1 shell]# cat 2.txt
2008-05-15,xutu,468x60,"273",10000101,a00,p00101,1
2008-05-15,xutu,468x60,"第80章 我要和你一起死",10000101,a00,p00101,1
2008-05-15,xutu,468x60,"低调也难?第一百八十九章 公会战争的爆发",10000101,a00,p00101,1
2008-05-15,zhang,468x60,"第十四卷 厚积薄发 第二十四章 北风劲吹(1)",10000101,a00,p00101,1
2008-05-15,xutu,468x60,"网游三国之城市攻略",10000101,a00,p00101,1
2008-05-15,xutu,468x60,"波风传说",10000101,a00,p00101,2
2008-05-15,xutu,576x90,"谐趣武侠",10000101,a00,p00101,1
2008-05-15,xxsy,170x300," 流浪歌",10000101,a00,p00101,1
[root@test1 shell]# sort -t"," +1 +7nr 2.txt
2008-05-15,xutu,468x60,"273",10000101,a00,p00101,1
2008-05-15,xutu,468x60,"第80章 我要和你一起死",10000101,a00,p00101,1
2008-05-15,xutu,468x60,"低调也难?第一百八十九章 公会战争的爆发",10000101,a00,p00101,1
2008-05-15,xutu,468x60,"网游三国之城市攻略",10000101,a00,p00101,1
2008-05-15,xutu,468x60,"波风传说",10000101,a00,p00101,2
2008-05-15,xutu,576x90,"谐趣武侠",10000101,a00,p00101,1
2008-05-15,xxsy,170x300," 流浪歌",10000101,a00,p00101,1
2008-05-15,zhang,468x60,"第十四卷 厚积薄发 第二十四章 北风劲吹(1)",10000101,a00,p00101,1
我想问的是兰色标记的记录为什么不是在第2行出现,似乎没有达到排序的目的。请指教 |