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

unexpand

v(uutils coreutils) 0.8.0
unexpand [OPTION]... [FICHIER]...

Convertir les espaces dans chaque FICHIER en tabulations, en écrivant vers la sortie standard. Sans FICHIER, ou quand FICHIER est -, lire l’entrée standard.

Options

--all, -a

convertir tous les espaces, au lieu de seulement les espaces initiaux

--first-only, -f

convertir seulement les séquences d’espaces en début de ligne (remplace -a)

--tabs=<N, LIST>, -t <N, LIST>

utiliser une LISTE séparée par des virgules de positions de tabulations ou avoir des tabulations de N caractères au lieu de 8 (active -a)

--no-utf8, -U

interpréter le fichier d’entrée comme ASCII 8-bit plutôt que UTF-8

Examples

The examples have not been translated yet and are shown in English. You can help by translating them on tldr-pages.

Convert blanks in each file to tabs, writing to stdout:

unexpand {{path/to/file}}

Convert blanks to tabs, reading from stdout:

unexpand

Convert all blanks, instead of just initial blanks:

unexpand {{[-a|--all]}} {{path/to/file}}

Convert only leading sequences of blanks (overrides -a):

unexpand --first-only {{path/to/file}}

Have tabs a certain number of characters apart, not 8 (enables -a):

unexpand {{[-t|--tabs]}} {{number}} {{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.