| UNIQ(1) | General Commands Manual | UNIQ(1) |
uniq — report or
filter out duplicated lines
uniq |
[-c|-d|-u]
[-f field_shift]
[-s byte_shift]
[input_file
[output_file]] |
The uniq utility reads
input_file line-by-line and by default filters out
repeating lines.
If no input_file is given or if
input_file is "-",
uniq reads from the standard input. If no
output_file is given or if output_file
is "-", uniq writes to the standard
output.
The following options are supported:
-c-d-f
field_shift-s
byte_shift-uThe uniq utility exits 0 on
success, and >0 if an error occurs.
uniq should be compliant with the IEEE Std
1003.1-2024 (“POSIX.1”) specification.
Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
| January 22, 2025 | Linux |