
| fold(1) | fold(1) | 
NAME
fold - fold long lines for ®nite width output device
SYNOPSIS
fold 
Obsolete form:
fold 
DESCRIPTION
The fold command is a ®lter that folds the contents of the speci®ed ®les, breaking the lines to have a maximum of width column positions (or bytes, if the 
The fold command is often used to send text ®les to line printers that truncate, rather than fold, lines wider than the printer is able to print.
If the backspace, tab, or 
| Backspace | The current count of line width is decremented by one, although the count never | 
| 
 | becomes negative. Thus, the character sequence  | 
| 
 | counts as using one column position, assuming both characters each occupy a single | 
| 
 | column position. fold does not insert a newline character immediately before or | 
| 
 | after any backspace character. | 
| Tab | Each tab character encountered advances the column position pointer to the next | 
| 
 | tab stop. Tab stops are set 8 columns apart at column positions 1, 9, 17, 25, 33, etc. | 
Note that fold may affect any underlining that is present.
Options
The fold command recognizes the following options and 
| Count width in bytes rather than in column positions. | |
| Break the line on the last blank character found before the speci®ed number of | |
| 
 | column positions (or bytes). If none are found, break the line at the speci®ed line | 
| 
 | length. | 
| Specify the maximum line length, in column positions (or bytes if  | |
| The default value is 80. width should be a multiple of 8 if tabs are present, or the | |
| 
 | tabs should be expanded using expand before processing by fold (see expand(1)). | 
| 
 | The  | 
EXTERNAL INFLUENCES
Environment Variables
LC_CTYPE determines the interpretation of text as single- and/or 
LC_MESSAGES determines the language in which messages are displayed.
If LC_CTYPE or LC_MESSAGES is not speci®ed in the environment or is set to the empty string, the value of LANG is used as a default for each unspeci®ed or empty variable. If LANG is not speci®ed or is set to the empty string, a default of "C" (see lang(5)) is used instead of LANG.
If any internationalization variable contains an invalid setting, fold behaves as if all internationalization variables are set to "C". See environ(5).
International Code Set Support
Single- and 
f
| − 1 − | Section 1−283 |