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 [OPCIÓN]... [ARCHIVO]...

Convertir espacios en blanco en cada ARCHIVO a tabulaciones, escribiendo a la salida estándar. Sin ARCHIVO, o cuando ARCHIVO es -, leer entrada estándar.

Options

--all, -a

convertir todos los espacios en blanco, en lugar de solo los espacios en blanco iniciales

--first-only, -f

convertir solo secuencias iniciales de espacios en blanco (anula -a)

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

usar LISTA separada por comas de posiciones de tabulación o tener tabulaciones separadas por N caracteres en lugar de 8 (habilita -a)

--no-utf8, -U

interpretar archivo de entrada como ASCII de 8-bit en lugar de 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.