uniq

Name

uniq -- remove duplicate lines from a sorted file

Description

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

LSB Deprecated Differences

The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.

--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.