mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-13 15:59:24 +00:00
Update cheatsheets
This commit is contained in:
@@ -28,6 +28,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`sort --field-separator={{:}} --key={{3n}} {{/etc/passwd}}`
|
||||
|
||||
- As above, but when items in the 3rd field are equal, sort by the 4th field by numbers with exponents:
|
||||
|
||||
`sort -t {{:}} -k {{3,3n}} -k {{4,4g}} {{/etc/passwd}}`
|
||||
|
||||
- Sort a file preserving only unique lines:
|
||||
|
||||
`sort --unique {{path/to/file}}`
|
||||
@@ -35,7 +39,3 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Sort a file, printing the output to the specified output file (can be used to sort a file in-place):
|
||||
|
||||
`sort --output={{path/to/file}} {{path/to/file}}`
|
||||
|
||||
- Sort numbers with exponents:
|
||||
|
||||
`sort --general-numeric-sort {{path/to/file}}`
|
||||
|
||||
Reference in New Issue
Block a user