=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/fmt/fmt.1,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- src/usr.bin/fmt/fmt.1 2003/06/10 09:12:10 1.17 +++ src/usr.bin/fmt/fmt.1 2006/11/29 20:09:27 1.18 @@ -1,4 +1,4 @@ -.\" $OpenBSD: fmt.1,v 1.17 2003/06/10 09:12:10 jmc Exp $ +.\" $OpenBSD: fmt.1,v 1.18 2006/11/29 20:09:27 jmc Exp $ .\" .\" Copyright (c) 1980, 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -39,16 +39,16 @@ .Nm fmt .Op Fl cmnps .Op Fl d Ar chars -.Op Fl l Ar num -.Op Fl t Ar num +.Op Fl l Ar number +.Op Fl t Ar number +.br .Oo .Ar goal -.Op Ar maximum -| -.Fl Ns Ar width | +.Oo Ar maximum Oc \*(Ba +.Fl Ns Ar width \*(Ba .Fl w Ar width .Oc -.Op Ar file ... +.Op Ar .Sh DESCRIPTION .Nm is a simple text formatter which reads the concatenation of input @@ -87,6 +87,24 @@ Center the text, line by line. In this case, most of the other options are ignored; no splitting or joining of lines is done. +.It Fl d Ar chars +Treat the +.Ar chars +(and no others) as sentence-ending characters. +By default the +sentence-ending characters are full stop +.Pq Ql \&. , +question mark +.Pq Ql \&? +and exclamation mark +.Pq Ql \&! . +Remember that some characters may need to be +escaped to protect them from your shell. +.It Fl l Ar number +Replace multiple spaces with tabs at the start of each output +line, if possible. +.Ar number +spaces will be replaced with one tab. .It Fl m Try to format mail header lines contained in the input sensibly. .It Fl n @@ -110,24 +128,6 @@ characters are turned into a single space. (Or, at the end of a sentence, a double space.) -.It Fl d Ar chars -Treat the -.Ar chars -(and no others) as sentence-ending characters. -By default the -sentence-ending characters are full stop -.Pq Ql \&. , -question mark -.Pq Ql \&? -and exclamation mark -.Pq Ql \&! . -Remember that some characters may need to be -escaped to protect them from your shell. -.It Fl l Ar number -Replace multiple spaces with tabs at the start of each output -line, if possible. -.Ar number -spaces will be replaced with one tab. .It Fl t Ar number Assume that the input files' tabs assume .Ar number