sort sort -r将数字当做字符进行排序 sort -n sort -nr 按照整个数字来排序 举例说明: linux系统中新建一个num.txt,neir内容如下 使用sort排序 使用sort -n排序