wc: refresh (#7391)

feature/windows-fix-syntax-2
marchersimon 2021-11-09 08:48:09 +01:00 committed by GitHub
parent 8d3b6b40cc
commit 69267420f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 21 deletions

View File

@ -1,24 +1,28 @@
# wc
> Cuenta líneas, palabras, o bytes.
> Cuenta líneas, palabras, y bytes.
> Más información: <https://www.gnu.org/software/coreutils/wc>.
- Cuenta las líneas en un archivo:
- Cuenta todas las líneas en un archivo:
`wc -l {{ruta/al/archivo}}`
`wc --lines {{ruta/al/archivo}}`
- Cuenta las palabras en un archivo:
- Cuenta todas las palabras en un archivo:
`wc -w {{ruta/al/archivo}}`
`wc --words {{ruta/al/archivo}}`
- Cuenta caracteres (bytes) en un archivo:
- Cuenta todos los bytes en un archivo:
`wc -c {{ruta/al/archivo}}`
`wc --bytes {{ruta/al/archivo}}`
- Cuenta caracteres en un archivo (considerando los caracteres de varios bytes):
- Cuenta todos los caracteres en un archivo (considerando los caracteres de varios bytes):
`wc -m {{ruta/al/archivo}}`
`wc --chars {{ruta/al/archivo}}`
- Usa la entrada estandar para contar líneas, palabras o caracteres (bytes), en ese orden:
- Cuenta todas las lineas, palabras y bytes desde stdin:
`{{find .}} | wc`
- Cuenta la longitud de la linea más larga en número de caracteres:
`wc --max-line-length {{ruta/al/archivo}}`

View File

@ -1,28 +1,28 @@
# wc
> Count lines, words, or bytes.
> Count lines, words, and bytes.
> More information: <https://www.gnu.org/software/coreutils/wc>.
- Count lines in file:
- Count all lines in a file:
`wc -l {{file}}`
`wc --lines {{path/to/file}}`
- Count words in file:
- Count all words in a file:
`wc -w {{file}}`
`wc --words {{path/to/file}}`
- Count characters (bytes) in file:
- Count all bytes in a file:
`wc -c {{file}}`
`wc --bytes {{path/to/file}}`
- Count characters in file (taking multi-byte character sets into account):
- Count all characters in a file (taking multi-byte characters into account):
`wc -m {{file}}`
`wc --chars {{path/to/file}}`
- Use standard input to count lines, words and characters (bytes) in that order:
- Count all lines, words and bytes from `stdin`:
`{{find .}} | wc`
- Count the length of the longest line in number of characters:
`wc --max-line-length {{file}}`
`wc --max-line-length {{path/to/file}}`