将数字按,从大到小排序
sort -n -r test.txt
将数字以从小到大排序
sort -n test.txt
将文档按分隔符分割,并进行排序 -k :打印第几列 -t :指定分隔符 不加默认空格
sort -n -r -k2 -t : test