mirror of git://git.suckless.org/sbase
44 lines
721 B
Groff
44 lines
721 B
Groff
.Dd March 5, 2015
|
|
.Dt FOLD 1
|
|
.Os sbase
|
|
.Sh NAME
|
|
.Nm fold
|
|
.Nd wrap lines to width
|
|
.Sh SYNOPSIS
|
|
.Nm
|
|
.Op Fl bs
|
|
.Op Fl w Ar width | Fl Ns Ar width
|
|
.Op Ar file ...
|
|
.Sh DESCRIPTION
|
|
.Nm
|
|
reads each
|
|
.Ar file
|
|
and prints its lines wrapped such that no line
|
|
exceeds a certain width.
|
|
If no file is given,
|
|
.Nm
|
|
reads from stdin.
|
|
.Sh OPTIONS
|
|
.Bl -tag -width Ds
|
|
.It Fl b
|
|
Count bytes rather than characters.
|
|
.It Fl s
|
|
If a line contains spaces, break
|
|
at the last space within
|
|
.Ar width .
|
|
.It Fl w Ar width | Fl Ns Ar width
|
|
Break at
|
|
.Ar width
|
|
characters. Default is 80.
|
|
.El
|
|
.Sh STANDARDS
|
|
The
|
|
.Nm
|
|
utility is compliant with the
|
|
.St -p1003.1-2008
|
|
specification.
|
|
.Pp
|
|
The obsolete
|
|
.Op Fl Ns Ar width
|
|
syntax is an extension to that specification.
|