sort

Sort lines of text

Syntax

sort [OPTION]… [FILE]…

Example

  • sort -u .python_history

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