mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-07 03:57:13 +00:00
Update cheatsheets
This commit is contained in:
6
tldr/fmt
6
tldr/fmt
@@ -14,12 +14,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Reformat a file producing output lines of (at most) `n` characters:
|
||||
|
||||
`fmt -w {{n}} {{path/to/file}}`
|
||||
`fmt {{[-w|--width]}} {{n}} {{path/to/file}}`
|
||||
|
||||
- Reformat a file without joining lines shorter than the given width together:
|
||||
|
||||
`fmt -s {{path/to/file}}`
|
||||
`fmt {{[-s|--split-only]}} {{path/to/file}}`
|
||||
|
||||
- Reformat a file with uniform spacing (1 space between words and 2 spaces between paragraphs):
|
||||
|
||||
`fmt -u {{path/to/file}}`
|
||||
`fmt {{[-u|--uniform-spacing]}} {{path/to/file}}`
|
||||
|
||||
Reference in New Issue
Block a user