=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/fmt/fmt.1,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- src/usr.bin/fmt/fmt.1 2000/03/07 21:11:08 1.9 +++ src/usr.bin/fmt/fmt.1 2000/06/25 15:35:42 1.10 @@ -1,4 +1,4 @@ -.\" $OpenBSD: fmt.1,v 1.9 2000/03/07 21:11:08 aaron Exp $ +.\" $OpenBSD: fmt.1,v 1.10 2000/06/25 15:35:42 pjanzen Exp $ .\" .\" Copyright (c) 1980, 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -50,8 +50,11 @@ .Oo .Ar goal .Op Ar maximum +| +.Fl Ns Ar width | +.Fl w Ar width .Oc -.Op Ar name ... +.Op Ar file ... .Sh DESCRIPTION .Nm is a simple text formatter which reads the concatenation of input @@ -67,8 +70,20 @@ to 65 and the .Ar maximum to 10 more than the goal length. +Alternatively, a single +.Ar width +parameter can be specified either by prepending a hyphen to it or by using +.Fl w . +For example, +.Dl fmt -w 72 , +.Dl fmt -72 , +and +.Dl fmt 72 72 +all produce identical output. The spacing at the beginning of the input lines is preserved in the output, as are blank lines and interword spacing. +Lines are joined or split only at white space; that is, words are never +joined or hyphenated. .Pp The options are as follows: .Bl -tag -width indent