感谢您的帮助
我已经尝试了
sort brokers.dat [^.*\n]
sort brokers.dat ^.*\n
sort -nr -t":" -k2 brokers.dat
无效
id first-name last-name
9:Danielle:Perety
8:Andre:Sinclair
7:John:Bush
6:Ted:Gore
5:Elric:Crofton
4:Frank:Denzel
3:Richard:Bradley
2:Herbert:Jackson
1:John:Smith
15:Frederick:Raven
14:Tommy:Mack
13:Bruce:Smith
12:Andrew:Wallace
11:Parker:Hamilton
答案 0 :(得分:0)
我找到了问题的答案
谢谢
sort brokers.dat -R | grep '\n$'