xref: /original-bsd/usr.bin/fold/fold.1 (revision c3e32dec)
1.\" Copyright (c) 1980, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" %sccs.include.redist.roff%
5.\"
6.\"	@(#)fold.1	8.1 (Berkeley) 06/06/93
7.\"
8.Dd
9.Dt FOLD 1
10.Os
11.Sh NAME
12.Nm fold
13.Nd "fold long lines for finite width output device"
14.Sh SYNOPSIS
15.Nm fold
16.Op Fl w Ar width
17.Ar
18.Sh DESCRIPTION
19.Nm Fold
20is a filter which folds the contents of the specified files,
21or the standard input if no files are specified,
22breaking the lines to have maximum of 80 characters.
23.Pp
24The options are as follows:
25.Bl -tag -width indent
26.It Fl w
27Specifies a line width to use instead of the default 80 characters.
28.Ar Width
29should be a multiple of 8 if tabs are present, or the tabs should
30be expanded using
31.Xr expand 1
32before using
33.Nm fold .
34.El
35.Sh SEE ALSO
36.Xr expand 1
37.Sh BUGS
38If underlining is present it may be messed up by folding.
39