*: path/to/everything (#9589)
This commit is contained in:
@@ -6,20 +6,20 @@
|
||||
|
||||
- Display each line once:
|
||||
|
||||
`sort {{file}} | uniq`
|
||||
`sort {{path/to/file}} | uniq`
|
||||
|
||||
- Display only unique lines:
|
||||
|
||||
`sort {{file}} | uniq -u`
|
||||
`sort {{path/to/file}} | uniq -u`
|
||||
|
||||
- Display only duplicate lines:
|
||||
|
||||
`sort {{file}} | uniq -d`
|
||||
`sort {{path/to/file}} | uniq -d`
|
||||
|
||||
- Display number of occurrences of each line along with that line:
|
||||
|
||||
`sort {{file}} | uniq -c`
|
||||
`sort {{path/to/file}} | uniq -c`
|
||||
|
||||
- Display number of occurrences of each line, sorted by the most frequent:
|
||||
|
||||
`sort {{file}} | uniq -c | sort -nr`
|
||||
`sort {{path/to/file}} | uniq -c | sort -nr`
|
||||
|
Reference in New Issue
Block a user