Main index | Section 1 | 日本語 | Deutsch | Options |
The options are as follows:
| |
Center the text, line by line. In this case, most of the other options are ignored; no splitting or joining of lines is done. | |
| |
Try to format mail header lines contained in the input sensibly. | |
| |
Format lines beginning with a ‘amp;.’ (dot) character. Normally, fmt does not fill these lines, for compatibility with nroff(1). | |
| |
Allow indented paragraphs.
Without the
| |
| |
Collapse whitespace inside lines, so that multiple whitespace characters are turned into a single space. (Or, at the end of a sentence, a double space.) | |
| |
Treat the chars (and no others) as sentence-ending characters. By default the sentence-ending characters are full stop (‘amp;.’), question mark (‘amp;?’) and exclamation mark (‘amp;!’). Remember that some characters may need to be escaped to protect them from your shell. | |
| |
Replace multiple spaces with tabs at the start of each output line, if possible. Each number spaces will be replaced with one tab. The default is 8. If number is 0, spaces are preserved. | |
| |
Assume that the input files' tabs assume number spaces per tab stop. The default is 8. | |
The fmt utility is meant to format mail messages prior to sending, but may also be useful for other simple tasks. For instance, within visual mode of the ex(1) editor (e.g., vi(1)) the command
amp;!}fmt
will reformat a paragraph, evening the lines.
The version described herein is a complete rewrite and appeared in FreeBSD 4.4 .
When the first line of an indented paragraph is very long (more than about twice the goal length), the indentation in the output can be wrong.
The fmt utility is not infallible in guessing what lines are mail headers and what lines are not.
FMT (1) | December 1, 2017 |
Main index | Section 1 | 日本語 | Deutsch | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | C is a language that combines all the elegance and power of assembly language with all the readability and maintainability of assembly language. | ” |