stdio.h defines BUFSIZ
[unix-history] / usr / src / usr.bin / fmt / fmt.1
index 437b233..4b40aa2 100644 (file)
@@ -1,49 +1,60 @@
-.\" Copyright (c) 1980 Regents of the University of California.
-.\" All rights reserved.  The Berkeley software License Agreement
-.\" specifies the terms and conditions for redistribution.
+.\" Copyright (c) 1980, 1990 The Regents of the University of California.
+.\" All rights reserved.
 .\"
 .\"
-.\"    @(#)fmt.1       6.2 (Berkeley) %G%
+.\" %sccs.include.redist.man%
 .\"
 .\"
-.TH FMT 1 ""
-.UC
-.SH NAME
-fmt \- simple text formatter
-.SH SYNOPSIS
-.B fmt
-[ goal [ maximum ] ]
-[
-name ...
-]
-.SH DESCRIPTION
-.I Fmt
+.\"     @(#)fmt.1      6.6 (Berkeley) %G%
+.\"
+.Dd 
+.Dt FMT 1
+.Sh NAME
+.Nm fmt
+.Nd simple text formatter
+.Sh SYNOPSIS
+.Nm fmt
+.Ob
+.Ar goal
+.Op Ar maximum
+.Oe
+.Op name ...
+.Sh DESCRIPTION
+.Nm Fmt
 is a simple text formatter which reads the concatenation of input
 files (or standard input if none are given) and produces on standard
 is a simple text formatter which reads the concatenation of input
 files (or standard input if none are given) and produces on standard
-output a version of its input with lines as close to the goal length
-as possible without exceeding the maximum.  The goal length defaults
+output a version of its input with lines as close to the
+.Ar goal
+length
+as possible without exceeding the maximum.  The
+.Ar goal
+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.
 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.
-.PP
-.I Fmt
+.Pp
+.Nm Fmt
 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
 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
-.I ex
+.Xr ex 1
 editor (e.g.
 editor (e.g.
-.IR vi )
+.Xr vi 1 )
 the command
 the command
-.br
-       !}fmt
-.br
+.Pp
+.Dl \&!}fmt
+.Pp
 will reformat a paragraph,
 evening the lines.
 will reformat a paragraph,
 evening the lines.
-.SH "SEE ALSO"
-nroff(1), mail(1)
-.SH AUTHOR
+.Sh SEE ALSO
+.Xr nroff 1 ,
+.Xr mail 1
+.Sh HISTORY
+.Nm Fmt
+appeared in 3 BSD.
+.Sh AUTHOR
 Kurt Shoens
 .br
 Liz Allen (added goal length concept)
 Kurt Shoens
 .br
 Liz Allen (added goal length concept)
-.SH BUGS
+.Sh BUGS
 The program was designed to be simple and fast \- for more complex
 operations, the standard text processors are likely to be more appropriate.
 The program was designed to be simple and fast \- for more complex
 operations, the standard text processors are likely to be more appropriate.