summaryrefslogtreecommitdiff
path: root/util/sbase/fold.1
diff options
context:
space:
mode:
Diffstat (limited to 'util/sbase/fold.1')
-rw-r--r--util/sbase/fold.139
1 files changed, 39 insertions, 0 deletions
diff --git a/util/sbase/fold.1 b/util/sbase/fold.1
new file mode 100644
index 00000000..3c2a3e80
--- /dev/null
+++ b/util/sbase/fold.1
@@ -0,0 +1,39 @@
+.Dd October 8, 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 num | Fl Ns Ar num
+.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 width.
+.It Fl w Ar num | Fl Ns Ar num
+Break at
+.Ar num
+characters.
+The default is 80.
+.El
+.Sh STANDARDS
+POSIX.1-2013.
+.Pp
+The
+.Op Fl Ns Ar num
+syntax is an extension to that specification.