new copyright; att/bsd/shared
[unix-history] / usr / src / usr.bin / fold / fold.1
.\" Copyright (c) 1980 The Regents of the University of California.
.\" All rights reserved.
.\"
.\" %sccs.include.redist.roff%
.\"
.\" @(#)fold.1 6.4 (Berkeley) %G%
.\"
.UC 7
.TH FOLD 1 ""
.UC
.SH NAME
fold \- fold long lines for finite width output device
.SH SYNOPSIS
.ft B
fold [ \-w width ] [ file ... ]
.ft R
.SH DESCRIPTION
.I Fold
is a filter which will fold the contents of the specified files,
or the standard input if no files are specified,
breaking the lines to have maximum of 80 characters.
.PP
The options are as follows:
.TP
\-w
Specifies a line width to use instead of the default 80 characters.
.I Width
should be a multiple of 8 if tabs are present, or the tabs should
be expanded using
.IR expand (1)
before using
.IR fold .
.SH SEE\ ALSO
expand(1)
.SH BUGS
If underlining is present it may be messed up by folding.