expand
expand [OPCIÓN]... [ARCHIVO]...
Convertir tabulaciones en cada ARCHIVO a espacios, escribiendo a la salida estándar. Sin ARCHIVO, o cuando ARCHIVO es -, leer la entrada estándar.
Options
--initial,-i-
no convertir tabulaciones después de caracteres que no sean espacios en blanco
--tabs=<N, LIST>,-t <N, LIST>-
tener tabulaciones separadas por N caracteres, no 8, o usar lista separada por comas de posiciones de tabulación explícitas
--no-utf8,-U-
interpretar archivo de entrada como ASCII de 8-bit en lugar de UTF-8
Examples
Convert tabs in each file to spaces, writing to stdout:
expand {{path/to/file}}
Convert tabs to spaces, reading from stdin:
expand
Do not convert tabs after non blanks:
expand {{[-i|--initial]}} {{path/to/file}}
Have tabs a certain number of characters apart, not 8:
expand {{[-t|--tabs]}} {{number}} {{path/to/file}}
Use a comma separated list of explicit tab positions:
expand {{[-t|--tabs]}} {{1,4,6}}
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.