sort

来源:互联网 发布:js new 函数 this 编辑:程序博客网 时间:2024/06/03 05:24
cat /etc/passwd | sort -t ':' -k 3 -n
-t 分隔符
-k 分隔符后取第几列
-n 数字排序