Deleted Added
full compact
fold.1 (87751) fold.1 (94978)
1.\" Copyright (c) 1980, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)fold.1 8.1 (Berkeley) 6/6/93
1.\" Copyright (c) 1980, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)fold.1 8.1 (Berkeley) 6/6/93
33.\" $FreeBSD: head/usr.bin/fold/fold.1 87751 2001-12-12 18:25:53Z charnier $
33.\" $FreeBSD: head/usr.bin/fold/fold.1 94978 2002-04-18 03:33:51Z tjr $
34.\"
34.\"
35.Dd June 6, 1993
35.Dd April 17, 2002
36.Dt FOLD 1
37.Os
38.Sh NAME
39.Nm fold
40.Nd "fold long lines for finite width output device"
41.Sh SYNOPSIS
42.Nm
36.Dt FOLD 1
37.Os
38.Sh NAME
39.Nm fold
40.Nd "fold long lines for finite width output device"
41.Sh SYNOPSIS
42.Nm
43.Op Fl bs
43.Op Fl w Ar width
44.Op Ar
45.Sh DESCRIPTION
46.Nm Fold
47is a filter which folds the contents of the specified files,
48or the standard input if no files are specified,
49breaking the lines to have a maximum of 80 characters.
50.Pp
51The following option is available:
52.Bl -tag -width indent
44.Op Fl w Ar width
45.Op Ar
46.Sh DESCRIPTION
47.Nm Fold
48is a filter which folds the contents of the specified files,
49or the standard input if no files are specified,
50breaking the lines to have a maximum of 80 characters.
51.Pp
52The following option is available:
53.Bl -tag -width indent
54.It Fl b
55Count
56.Ar width
57in bytes rather than column positions.
58.It Fl s
59Fold line after the last blank character within the first
60.Ar width
61column positions (or bytes).
53.It Fl w Ar width
54Specify a line width to use instead of the default 80 characters.
55.Ar Width
56should be a multiple of 8 if tabs are present, or the tabs should
57be expanded using
58.Xr expand 1
59before using
60.Nm .
61.El
62.Sh SEE ALSO
63.Xr expand 1
62.It Fl w Ar width
63Specify a line width to use instead of the default 80 characters.
64.Ar Width
65should be a multiple of 8 if tabs are present, or the tabs should
66be expanded using
67.Xr expand 1
68before using
69.Nm .
70.El
71.Sh SEE ALSO
72.Xr expand 1
73.Sh STANDARDS
74The
75.Nm
76utility conforms to
77.St -p1003.1-2001 .
64.Sh BUGS
65If underlining is present it may be messed up by folding.
78.Sh BUGS
79If underlining is present it may be messed up by folding.