uniq

Name

uniq -- remove duplicate lines from a sorted file

Description

uniq is as specified in the SUS but with differences as listed below.

Differences

--count

is equivalent to -c.

--repeated

is equivalent to -d.

-D, --all-repeated

prints all duplicate lines.

--skip-fields=N

is equivalent to -f fields.

-i, --ignore-case

ignores differences in case when comparing.

--skip-chars=N

is equivalent to -s.

--unique

is equivalent to -u.

-w, --check-chars=N

compares no more than N characters in lines.

--version

outputs version information and exits.