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

wc

Some strings on this page have not been translated yet. You can help by translating them on Weblate.
v(uutils coreutils) 0.8.0
wc [OPCIÓN]... [ARCHIVO]...

Mostrar conteos de nueva línea, palabra y byte para cada ARCHIVO, y una línea total si se especifica más de un ARCHIVO.

Options

--bytes, -c

mostrar los conteos de bytes

--chars, -m

mostrar los conteos de caracteres

--files0-from=<F>

leer entrada de los archivos especificados por
nombres terminados en NUL en el archivo F;
Si F es - entonces leer nombres de entrada estándar

--lines, -l

mostrar los conteos de nueva línea

--max-line-length, -L

mostrar la longitud de la línea más larga

--total=<WHEN>

cuándo mostrar una línea con conteos totales;
CUÁNDO puede ser: auto, always, only, never

--words, -w

mostrar los conteos de palabras

--debug

Examples

Cuenta todas las líneas en un archivo:

wc {{[-l|--lines]}} {{ruta/al/archivo}}

Cuenta todas las palabras en un archivo:

wc {{[-w|--words]}} {{ruta/al/archivo}}

Cuenta todos los bytes en un archivo:

wc {{[-c|--bytes]}} {{ruta/al/archivo}}

Cuenta todos los caracteres en un archivo (considerando los caracteres de varios bytes):

wc {{[-m|--chars]}} {{ruta/al/archivo}}

Cuenta todas las líneas, palabras y bytes desde stdin:

{{find .}} | wc

Cuenta la longitud de la línea más larga en número de caracteres:

wc {{[-L|--max-line-length]}} {{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.