August 1999
Intermediate to advanced
1000 pages
83h 9m
English
/usr/bin/fold [-bs][-w width | -width][file...]
The fold command is a filter that folds lines from its input files, breaking the lines to have a maximum of width column positions (or bytes, if you specify the -b option). Lines are broken by inserting a newline character so that each output line (referred to later in this section as a segment) is the maximum width possible that does not exceed the specified number of column positions (or bytes). A line is not broken in the middle of a character. The behavior is undefined if width is less than the number of columns any single character in the input would occupy.
If the Return, backspace, or Tab characters are encountered in the input and ...
Read now
Unlock full access