fmt
Options
- --crown-margin,- -c
- 
fmt-crown-margin-help 
- --tagged-paragraph,- -t
- 
fmt-tagged-paragraph-help 
- --preserve-headers,- -m
- 
fmt-preserve-headers-help 
- --split-only,- -s
- 
fmt-split-only-help 
- --uniform-spacing,- -u
- 
fmt-uniform-spacing-help 
- --prefix=<PREFIX>,- -p <PREFIX>
- 
fmt-prefix-help 
- --skip-prefix=<PSKIP>,- -P <PSKIP>
- 
fmt-skip-prefix-help 
- --exact-prefix,- -x
- 
fmt-exact-prefix-help 
- --exact-skip-prefix,- -X
- 
fmt-exact-skip-prefix-help 
- --width=<WIDTH>,- -w <WIDTH>
- 
fmt-width-help 
- --goal=<GOAL>,- -g <GOAL>
- 
fmt-goal-help 
- --quick,- -q
- 
fmt-quick-help 
- --tab-width=<TABWIDTH>,- -T <TABWIDTH>
- 
fmt-tab-width-help 
Examples
Reformat a file:
fmt {{path/to/file}}
Reformat a file producing output lines of (at most) n characters:
fmt {{[-w|--width]}} {{n}} {{path/to/file}}
Reformat a file without joining lines shorter than the given width together:
fmt {{[-s|--split-only]}} {{path/to/file}}
Reformat a file with uniform spacing (1 space between words and 2 spaces between paragraphs):
fmt {{[-u|--uniform-spacing]}} {{path/to/file}}
The examples are provided by the tldr-pages project under the CC BY 4.0 License.
Please note that, as uutils is a work in progress, some examples might fail.