sort

对文本行进行排序

语法

sort [OPTION]… [FILE]…

示例

  • sort -u .python_history
  • nl .bash_history | sort -u -k2 | sort -n