fold
Syntax
fold [options] [
files
]
Options
-b
counts bytes instead of columns, so backspaces and tabs are counted.
-s
breaks lines at word boundaries.
-w
N
(where N
is a number) sets line width to N
characters.
Description
The fold
command wraps each input line to a specified number of characters and displays the results on the screen (standard output). If you do not specify any filename, fold
reads lines from the standard input.