假设先按第6列数字倒序,再此基础上再按第5列顺序排列: sort -k6nr -k5n file.txt 注意不能用以下排序方法: sort -k6 -nr -k5 -n file.txt 这样最后结果还是按第五列排了