fold writes each file (- means standard input), or standard input if none are given, to standard output, breaking long lines. Synopsis:
fold [option]... [file]...
By default, fold breaks lines wider than 80 columns. The output is split into as many lines as necessary.
fold counts screen columns by default; thus, a tab may count more than one column, backspace decreases the column count, and carriage return sets the column to zero.
The program accepts the following options. Also see Common options.
For compatibility fold supports an obsolete option syntax -width. New scripts should use -w width instead.
An exit status of zero indicates success, and a nonzero value indicates failure.