PROPHET/OS

NAME

uniq: drops a line that repeats the one before it

SYNOPSIS

uniq [-c]

DESCRIPTION

Drops a line that repeats the one before it.

-c   put the count in front

It compares against the line before, not against every line seen. That costs one line of memory instead of all of them, and it is why sort usually comes first.

EXAMPLE

$ uniq --help
uniq [-c]
  drops a line that repeats the one before it
  -c puts the count in front

SEE ALSO

sort, grep, wc