mirror of https://github.com/CrimsonTome/tldr.git
20 lines
275 B
Markdown
20 lines
275 B
Markdown
|
# uniq
|
||
|
|
||
|
> Report or omit repeated lines.
|
||
|
|
||
|
- Display each line once:
|
||
|
|
||
|
`uniq {{file}}`
|
||
|
|
||
|
- Display only unique lines:
|
||
|
|
||
|
`uniq -u {{file}}`
|
||
|
|
||
|
- Display only duplicate lines:
|
||
|
|
||
|
`uniq -d {{file}}`
|
||
|
|
||
|
- Display number of occurences of each line along with that line:
|
||
|
|
||
|
`uniq -c {{file}}`
|