Flush out the last dregs in the terminal before quitting when
[unix-history] / usr / src / usr.bin / fmt / fmt.1
CommitLineData
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
10fmt \- simple text formatter
11.SH SYNOPSIS
12.B fmt
fadf875b 13[ goal [ maximum ] ]
8c3a8b73
KM
14[
15name ...
16]
17.SH DESCRIPTION
18.I Fmt
19is a simple text formatter which reads the concatenation of input
fadf875b
KM
20files (or standard input if none are given) and produces on standard
21output a version of its input with lines as close to the goal length
22as possible without exceeding the maximum. The goal length defaults
23to 65 and the maximum to 75. The spacing at the beginning of the
24input lines is preserved in the output, as are blank lines and
25interword spacing.
8c3a8b73
KM
26.PP
27.I Fmt
28is meant to format mail messages prior to sending, but may also be useful
29for other simple tasks.
30For instance,
31within visual mode of the
32.I ex
33editor (e.g.
34.IR vi )
35the command
36.br
37 !}fmt
38.br
39will reformat a paragraph,
40evening the lines.
41.SH "SEE ALSO"
42nroff(1), mail(1)
43.SH AUTHOR
44Kurt Shoens
fadf875b
KM
45.br
46Liz Allen (added goal length concept)
8c3a8b73
KM
47.SH BUGS
48The program was designed to be simple and fast \- for more complex
49operations, the standard text processors are likely to be more appropriate.