mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-29 00:35:27 +02:00
uniq: add page
This commit is contained in:
parent
dd9947ce8a
commit
f8cbd12e70
1 changed files with 19 additions and 0 deletions
19
pages/common/uniq.md
Normal file
19
pages/common/uniq.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# 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}}`
|
Loading…
Add table
Reference in a new issue