Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-14 00:18:08 +00:00
parent 904f7fe0c1
commit 605e1cdfd8
20 changed files with 97 additions and 68 deletions

View File

@@ -15,16 +15,16 @@ source: https://github.com/tldr-pages/tldr.git
- Display only unique lines:
`sort {{path/to/file}} | uniq -u`
`sort {{path/to/file}} | uniq {{[-u|--unique]}}`
- Display only duplicate lines:
`sort {{path/to/file}} | uniq -d`
`sort {{path/to/file}} | uniq {{[-d|--repeated]}}`
- Display number of occurrences of each line along with that line:
`sort {{path/to/file}} | uniq -c`
`sort {{path/to/file}} | uniq {{[-c|--count]}}`
- Display number of occurrences of each line, sorted by the most frequent:
`sort {{path/to/file}} | uniq -c | sort -nr`
`sort {{path/to/file}} | uniq {{[-c|--count]}} | sort {{[-nr|--numeric-sort --reverse]}}`