Report or omit repeated lines
uniq -c {count} -d {repeated} -D {flag-d} -f {skip-fields} -i {ignore-case} ๐ count ๐ repeated ๐ flag-d ๐ skip-fields ๐ ignore-case uniq -c {count} -d {repeated} -D {flag-d} -f {skip-fields} -i {ignore-case} Sandbox: execFile · Timeout: 30s
system.file.uniq system.file.search system.file.process system.file.copy system.file.move system.file.delete | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
count | integer | No | - | prefix lines by the number of occurrences | -c, --count |
repeated | string | No | - | only print duplicate lines, one for each group | -d, --repeated |
flag-D | string | No | - | print all duplicate lines --all-repeated[=METHOD] like -D, but allow separating groups with an empty line; METHOD={none(default),prepend,separate} | -D |
skip-fields | integer | No | - | avoid comparing the first N fields --group[=METHOD] show all items, separating groups with an empty line; METHOD={separate(default),prepend,append,both} | -f, --skip-fields |
ignore-case | string | No | - | ignore differences in case when comparing | -i, --ignore-case |
skip-chars | integer | No | - | avoid comparing the first N characters | -s, --skip-chars |
unique | string | No | - | only print unique lines | -u, --unique |
zero-terminated | string | No | - | line delimiter is NUL, not newline | -z, --zero-terminated |
check-chars | integer | No | - | compare no more than N characters in lines --help display this help and exit --version output version information and exit | -w, --check-chars |
all_repeated | boolean | No | - | --all-repeated | |
group | boolean | No | - | --group | |
help | boolean | No | - | --help | |
version | boolean | No | - | --version |
Display help message
uniq --help uniq is a command-line utility for report or omit repeated lines.
uniq -c {count} -d {repeated} -D {flag-d} -f {skip-fields} -i {ignore-case}