当前位置: 首页闲谈正文 以升序对文件内容排序:sort names.txt 。 以降序对文件内容排序:sort -r names.txt 。 以第三个字段对 /etc/passwd 的内容排序:sort -t: -k 3n /etc/passwd | more 。 蔡俊伟普通 打赏 收藏 链接