Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

fold

Some strings on this page have not been translated yet. You can help by translating them on Weblate.
v0.13.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.

Fold lines in a fixed width:

fold {{[-w|--width]}} {{width}} {{path/to/file}}

Count width in bytes (the default is to count in columns):

fold {{[-b|--bytes]}} {{[-w|--width]}} {{width_in_bytes}} {{path/to/file}}

Break the line after the rightmost blank within the width limit:

fold {{[-s|--spaces]}} {{[-w|--width]}} {{width}} {{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.