1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 10:22:08 +02:00

readarray: add Spanish translation (#15533)

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
Darío Hereñú 2025-02-02 13:32:45 -03:00 committed by GitHub
parent f5137924a6
commit f9fc4aaad3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}}`