SYNOPSIS
fold
[
DESCRIPTION
fold reads the standard input, or each file, if you specify any. Each input line is broken into lines no longer than width column positions. If you do not specify width on the command line, the default line length is 80. The output is sent to the standard output.
Options
-b -
specifies the width in bytes rather than in column positions; that is, fold does not interpret tab, backspace, and carriage return characters.
-s -
breaks each line after the last blank within width column positions. If there is no blank that meets the requirement, fold breaks the line normally.
-w width-
specifies a maximum line length of width column positions.
- width-
is identical in effect to
-w width.
DIAGNOSTICS
Possible exit status values are:
- 0
-
Successful completion.
- 1
-
Failure due to one of the following:
- 2
-
Invalid command line option or a missing width argument.
PORTABILITY
POSIX.2. x/OPEN Portability Guide 4.0. 4.2 BSD UNIX. Windows 2000. Windows XP. Windows Server 2003. Windows Vista.
The
AVAILABILITY
MKS Toolkit for Power Users
MKS Toolkit for System Administrators
MKS Toolkit for Developers
MKS Toolkit for Interoperability
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Commands:
- pr
MKS Toolkit 9.2 Documentation Build 16.