fold
Some strings on this page have not been translated yet. You can help by translating them on Weblate.
v(uutils coreutils) 0.8.0
fold [OPTION]... [FICHIER]...
Écrit chaque fichier (ou l’entrée standard si aucun fichier n’est donné) sur la sortie standard en coupant les lignes trop longues
Options
--bytes,-b-
fold-bytes-help
--characters,-c-
fold-characters-help
--spaces,-s-
fold-spaces-help
--width=<WIDTH>,-w <WIDTH>-
fold-width-help
Examples
The examples have not been translated yet and are shown in English. You can help by translating them on tldr-pages.
Wrap each line to default width (80 characters):
fold {{path/to/file}}
Wrap each line to width “30”:
fold -w30 {{path/to/file}}
Wrap each line to width “5” and break the line at spaces (puts each space separated word in a new line, words with length > 5 are wrapped):
fold -w5 -s {{path/to/file}}
The examples are provided by the tldr-pages project under the CC BY 4.0 License.
Please note that, as uutils is a work in progress, some examples might fail.