← Command encyclopedia

uniq

Collapse adjacent duplicate lines.

Executable in the CoreQ simulator

Syntax

uniq [-c] [-d] [FILE]

Practise it now in the Linux sandbox. Type man uniq there for a quick summary.

Learn it in

Related commands

cattacrevnlheadtailwcgrep