version 1.16, 2011/12/28 22:27:18 |
version 1.17, 2016/01/05 12:44:55 |
|
|
.Nm |
.Nm |
is a filter which folds the contents of the specified files, |
is a filter which folds the contents of the specified files, |
or the standard input if no files are specified, |
or the standard input if no files are specified, |
breaking the lines to have a maximum of 80 characters. |
breaking the lines to have a maximum of 80 display columns. |
.Pp |
.Pp |
The options are as follows: |
The options are as follows: |
.Bl -tag -width Ds |
.Bl -tag -width Ds |
|
|
.Ar width |
.Ar width |
in bytes rather than column positions. |
in bytes rather than column positions. |
.It Fl s |
.It Fl s |
Fold line after the last blank character within the first |
If an output line would be broken after a non-blank character but |
.Ar width |
contains at least one blank character, break the line earlier, |
column positions (or bytes). |
after the last blank character. |
|
This is useful to avoid line breaks in the middle of words, if |
|
possible. |
.It Fl w Ar width |
.It Fl w Ar width |
Specifies a line width to use instead of the default 80 characters. |
Specifies a line width to use instead of the default of 80. |
.El |
.El |
.Sh EXIT STATUS |
.Sh EXIT STATUS |
.Ex -std fold |
.Ex -std fold |
|
|
.Xr expand 1 |
.Xr expand 1 |
before using |
before using |
.Nm fold . |
.Nm fold . |
|
.Pp |
|
Multibyte character support is missing. |