2015-01-25 20:36:32 +00:00
|
|
|
.Dd January 25, 2015
|
2015-01-25 20:22:17 +00:00
|
|
|
.Dt FOLD 1 sbase\-VERSION
|
2015-01-30 20:17:58 +00:00
|
|
|
.Os
|
2015-01-25 20:22:17 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm fold
|
|
|
|
.Nd wrap lines to width
|
|
|
|
.Sh SYNOPSIS
|
2015-01-30 20:17:58 +00:00
|
|
|
.Nm
|
2015-01-25 20:22:17 +00:00
|
|
|
.Op Fl bs
|
|
|
|
.Op Fl w Ar width
|
|
|
|
.Op Fl N
|
|
|
|
.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 N
|
|
|
|
Break at
|
|
|
|
.Ar width
|
2015-01-25 20:25:03 +00:00
|
|
|
|
|
|
|
|
.Sy N
|
2015-01-25 20:22:17 +00:00
|
|
|
characters. Default is 80.
|
|
|
|
.El
|
|
|
|
.Sh STANDARDS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility is compliant with the
|
|
|
|
.St -p1003.1-2008
|
|
|
|
specification.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Op Fl N
|
|
|
|
flag is an extension to that specification.
|