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

cat

v0.13.0
cat [OPCIÓN]... [ARCHIVO]...

Concatenar ARCHIVO(s), o entrada estándar, a salida estándar Sin ARCHIVO, o cuando ARCHIVO es -, leer entrada estándar.

Options

--show-all, -A

equivalent to -vET

--number-nonblank, -b

number nonempty output lines, overrides -n

-e

equivalent to -vE

--show-ends, -E

display $ at end of each line

--number, -n

number all output lines

--squeeze-blank, -s

suppress repeated empty output lines

-t

equivalent to -vT

--show-tabs, -T

display TAB characters at ^I

--show-nonprinting, -v

use ^ and M- notation, except for LF (\n) and TAB (\t)

-u

(ignored)

Examples

Imprime el contenido de un archivo a stdout:

cat {{ruta/al/archivo}}

Concatena varios archivos en un archivo:

cat {{ruta/al/archivo1 ruta/al/archivo2 ...}} >{{ruta/al/archivo_resultado}}

Añade varios archivos a un archivo:

cat {{ruta/al/archivo1 ruta/al/archivo2 ...}} >>{{ruta/al/archivo_resultado}}

Escribe stdin a un archivo:

cat - >{{ruta/al/archivo}}

[n]umera todas las líneas de salida:

cat {{[-n|--number]}} {{ruta/al/archivo}}

Muestra caracteres no imprimibles y en blanco (con prefijo M- si no es ASCII):

cat {{[-vte|--show-nonprinting -t -e]}} {{ruta/al/archivo}}

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.