uniq

报告和剔除文本中连续的相同行

语法

uniq [OPTION]… [INPUT [OUTPUT]]

示例

  • sort .python_history | uniq -c