uniq [command] [command]

Report or omit repeated line

Arguments

NameDescription
commandfilepaths, folders
command

Options

NameDescription
-c,--countPrefix lines by the number of occurrences
-d,--repeatedOnly print duplicate lines
-D,--all-repeated [command]Print all duplicate lines. Delimiting is done with blank lines
-f,--skip-fields <command>Avoid comparing the first N fields
-i,--ignore-caseIgnore differences in case when comparing
-s,--skip-chars <command>Avoid comparing the first N characters
-u,--uniqueOnly print unique lines
-z,--zero-terminatedEnd lines with 0 byte, not newline
-w,--check-chars <command>Compare no more than N characters in lines
--helpDisplay this help and exit
--versionOutput version information and exit