fold

NAME

fold - fold long lines for finite width output device

SYNOPSIS

fold [-w width] file ...

DESCRIPTION

The fold(1) utility is a filter that folds the contents of the specified files, or the standard input if no files are specified, breaking the lines at a maximum width of 80 characters.

OPTIONS

-w width
Specifies a line width to use instead of the default 80 characters. If the input text includes tabs, width should be a multiple of 8.

DIAGNOSTICS

The fold(1) utility exits 0 on success, and >0 if an error occurs.

SEE ALSO

fmt(1)