mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-07 01:26:03 +02:00
fmt: add page
This commit is contained in:
parent
3c4d0d0ab1
commit
5613928eea
1 changed files with 19 additions and 0 deletions
19
pages/common/fmt.md
Normal file
19
pages/common/fmt.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# fmt
|
||||
|
||||
> Reformat a text file by joining its paragraphs and limiting the line width to given number of characters (75 by default).
|
||||
|
||||
- Reformat a file:
|
||||
|
||||
`fmt {{path/to/file}}`
|
||||
|
||||
- Reformat a file producing output lines of (at most) `n` characters:
|
||||
|
||||
`fmt -w {{n}} {{path/to/file}}`
|
||||
|
||||
- Reformat a file without joining lines shorter than the given width together:
|
||||
|
||||
`fmt -s {{path/to/file}}`
|
||||
|
||||
- Reformat a file with uniform spacing (1 space between words and 2 spaces between paragraphs):
|
||||
|
||||
`fmt -u {{path/to/file}}`
|
Loading…
Add table
Reference in a new issue