uniq

Name

uniq -- remove duplicate lines from a sorted file

Description

The specification for "uniq" is as specified in the SUS but with the following differences as listed below.

Differences

--count

equivalent to the -c option

--repeated

equivalent to the -d option

-D, --all-repeated

print all duplicate lines

--skip-fields=N

equivalent to -f fields

-i, --ignore-case

ignore differences in case when comparing

--skip-chars=N

equivalent to the -s option

--unique

equivalent to the -u option

-w, --check-chars=N

compare no more than N characters in lines

--version

output version information and exit