Wrap text to fit a specified width. Folds the contents of the specified files, or the standard input if no files are specified, breaking the lines to have maximum of 80 characters.
Syntax fold [-bs] [-w width] file ... Options -b Count width in bytes rather than column positions. -s Fold line after the last blank character within the first width column positions (or bytes). -w Specifies a line width to use instead of the default 80 charac- ters.
The fold utility exits 0 on success, and >0 if an error occurs.
"The general attitude seems to be that people should wear square shoes, because squares are easier to design and manufacture than foot shaped shoes. If the shoe industry has gone the way of the computer industry it would now be running a $200-a-day course on how to walk, run and jump in square shoes" ~ Alan Kay
Related macOS commands:
cut - Divide a file into several parts
expand - Convert tabs to spaces
fmt - Reformat paragraph text
head - Output the first part of file(s)
paste - Merge lines of files
split - Split a file into fixed-size pieces
tail - Output the last part of files