Commit | Line | Data |
---|---|---|
8c3a8b73 KM |
1 | .\" Copyright (c) 1980 Regents of the University of California. |
2 | .\" All rights reserved. The Berkeley software License Agreement | |
3 | .\" specifies the terms and conditions for redistribution. | |
4 | .\" | |
fadf875b | 5 | .\" @(#)fmt.1 6.2 (Berkeley) %G% |
8c3a8b73 | 6 | .\" |
9123ccac | 7 | .TH FMT 1 "" |
8c3a8b73 KM |
8 | .UC |
9 | .SH NAME | |
10 | fmt \- simple text formatter | |
11 | .SH SYNOPSIS | |
12 | .B fmt | |
fadf875b | 13 | [ goal [ maximum ] ] |
8c3a8b73 KM |
14 | [ |
15 | name ... | |
16 | ] | |
17 | .SH DESCRIPTION | |
18 | .I Fmt | |
19 | is a simple text formatter which reads the concatenation of input | |
fadf875b KM |
20 | files (or standard input if none are given) and produces on standard |
21 | output a version of its input with lines as close to the goal length | |
22 | as possible without exceeding the maximum. The goal length defaults | |
23 | to 65 and the maximum to 75. The spacing at the beginning of the | |
24 | input lines is preserved in the output, as are blank lines and | |
25 | interword spacing. | |
8c3a8b73 KM |
26 | .PP |
27 | .I Fmt | |
28 | is meant to format mail messages prior to sending, but may also be useful | |
29 | for other simple tasks. | |
30 | For instance, | |
31 | within visual mode of the | |
32 | .I ex | |
33 | editor (e.g. | |
34 | .IR vi ) | |
35 | the command | |
36 | .br | |
37 | !}fmt | |
38 | .br | |
39 | will reformat a paragraph, | |
40 | evening the lines. | |
41 | .SH "SEE ALSO" | |
42 | nroff(1), mail(1) | |
43 | .SH AUTHOR | |
44 | Kurt Shoens | |
fadf875b KM |
45 | .br |
46 | Liz Allen (added goal length concept) | |
8c3a8b73 KM |
47 | .SH BUGS |
48 | The program was designed to be simple and fast \- for more complex | |
49 | operations, the standard text processors are likely to be more appropriate. |