*: path/to/everything (#9589)

This commit is contained in:
pixel
2022-12-04 10:12:49 +01:00
committed by GitHub
parent ab7a36fbe6
commit 0d99563193
61 changed files with 147 additions and 147 deletions

View File

@@ -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`