排序命令输出

sort 命令用于对行列表进行排序。

从文件输入

sort file.txt  

从命令输入

你可以排序任何输出命令。在示例中,模式后面的文件列表。

find * -name pattern | sort