fold1
Wrap each input line to fit in specified width
Usage
fold [OPTION] ...
[FILE] ...
Overview
Wrap input lines in each FILE, writing to standard output.
With no FILE, or when FILE is -, read standard input.
Mandatory arguments to long options are mandatory for short options too.
-
-b, --bytes -
count bytes rather than columns
-
-c, --characters -
count characters rather than columns
-
-s, --spaces -
break after blanks, or in words greater than WIDTH
-
-w, --width=WIDTH -
use WIDTH columns instead of 80
-
--help -
display this help and exit
-
--version -
output version information and exit
Releases
19 releases since Debian 1.1 (Buzz); the text changed 15 times.
--characters since Arch Linux 2026-11-01;
-c since Arch Linux 2026-11-01.