mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-28 02:53:45 +00:00
Update cheatsheets
This commit is contained in:
@@ -29,3 +29,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Display number of occurrences of each line, sorted by the most frequent:
|
||||
|
||||
`sort {{path/to/file}} | uniq {{[-c|--count]}} | sort {{[-nr|--numeric-sort --reverse]}}`
|
||||
|
||||
- Compare only the first 10 characters on each line for uniqueness:
|
||||
|
||||
`sort {{path/to/file}} | uniq {{[-w|--check-chars]}} 10`
|
||||
|
||||
- Compare text after the first 5 characters on each line for uniqueness:
|
||||
|
||||
`sort {{path/to/file}} | uniq {{[-s|--skip-chars]}} 5`
|
||||
|
||||
Reference in New Issue
Block a user