|
|
HP-UX Reference Volume 1 of 5 > ffold(1) |
|
NAMEfold — fold long lines for finite width output device DESCRIPTIONThe fold command is a filter that folds the contents of the specified files, breaking the lines to have a maximum of width column positions (or bytes, if the -b option is specified). The fold command breaks lines by inserting a newline character so that each output line is the maximum width possible that does not exceed the specified number of column positions (or bytes). A line cannot be broken in the middle of a character. If no files are specified or if a file name of - is specified, the standard input is used. The fold command is often used to send text files to line printers that truncate, rather than fold, lines wider than the printer is able to print. If the backspace, tab, or carriage-return characters are encountered in the input, and the -b option is not specified, they are treated specially as follows:
Note that fold may affect any underlining that is present. OptionsThe fold command recognizes the following options and command-line arguments:
EXTERNAL INFLUENCESEnvironment VariablesLC_CTYPE determines the interpretation of text as single- and/or multi-byte characters. LC_MESSAGES determines the language in which messages are displayed. If LC_CTYPE or LC_MESSAGES is not specified in the environment or is set to the empty string, the value of LANG is used as a default for each unspecified or empty variable. If LANG is not specified 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). |
|