BSD 4_3_Reno development
[unix-history] / usr / share / man / cat1 / fmt.0
FMT(1) UNIX Reference Manual FMT(1)
N\bNA\bAM\bME\bE
f\bfm\bmt\bt - simple text formatter
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
f\bfm\bmt\bt [_\bg_\bo_\ba_\bl [_\bm_\ba_\bx_\bi_\bm_\bu_\bm]] [name ...]
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
F\bFm\bmt\bt is a simple text formatter which reads the concatenation of input
files (or standard input if none are given) and produces on standard out-
put a version of its input with lines as close to the _\bg_\bo_\ba_\bl length as pos-
sible without exceeding the maximum. The _\bg_\bo_\ba_\bl length defaults to 65 and
the maximum to 75. The spacing at the beginning of the input lines is
preserved in the output, as are blank lines and interword spacing.
F\bFm\bmt\bt 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
!}fmt
will reformat a paragraph, evening the lines.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
nroff(1), mail(1)
H\bHI\bIS\bST\bTO\bOR\bRY\bY
F\bFm\bmt\bt appeared in 3 BSD.
A\bAU\bUT\bTH\bHO\bOR\bR
Kurt Shoens
Liz Allen (added goal length concept)
B\bBU\bUG\bGS\bS
The program was designed to be simple and fast - for more complex opera-
tions, the standard text processors are likely to be more appropriate.