mirror of
https://github.com/tldr-pages/tldr
synced 2026-08-26 14:13:36 +01:00
readarray: add Spanish translation (#15533)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
co-authored by
Sebastiaan Speck
parent
f5137924a6
commit
f9fc4aaad3
@@ -0,0 +1,20 @@
|
||||
# readarray
|
||||
|
||||
> Lee líneas de `stdin` en un arreglo.
|
||||
> Más información: <https://www.gnu.org/software/bash/manual/bash.html#index-readarray>.
|
||||
|
||||
- Ingresa líneas en un arreglo de forma interactiva:
|
||||
|
||||
`readarray {{nombre_arreglo}}`
|
||||
|
||||
- Lee líneas de un archivo y las inserta en un arreglo:
|
||||
|
||||
`readarray {{nombre_arreglo}} < {{ruta/al/archivo.txt}}`
|
||||
|
||||
- Elimina los delimitadores finales (newline por defecto):
|
||||
|
||||
`readarray -t {{nombre_arreglo}} < {{ruta/al/archivo.txt}}`
|
||||
|
||||
- Copia como máximo el número de líneas especificado:
|
||||
|
||||
`readarray -n {{N}} {{nombre_arreglo}} < {{ruta/al/archivo.txt}}`
|
||||
Reference in New Issue
Block a user