1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-09 21:33:50 +02:00

{: add Spanish translation (#15435)

Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
Darío Hereñú 2025-02-20 00:02:20 -03:00 committed by GitHub
parent 744aee3387
commit 5dcba59d2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

36
pages.es/common/{.md Normal file
View file

@ -0,0 +1,36 @@
# Curly brace
> Sintaxis de intérprete de comandos polivalente.
> Más información: <https://www.gnu.org/software/bash/manual/bash.html>.
- Aísla nombres de variables:
`echo ${HOME}work`
- Apuntala expandiendo secuencias:
`echo {1..3} {a..c}{dir1,dir2,dir3}`
- Comprueba si `variable` está definida antes de devolver el texto:
`echo ${variable:+variable is set and contains $variable}`
- Establece valores por defecto en caso de que `variable` no esté establecida:
`echo ${variable:-default}`
- Devuelve la longitud de `variable` en caracteres:
`echo ${#variable}`
- Devuelve un trozo de cadena:
`echo ${variable:3:7}`
- Expande recursivamente una `variable`:
`echo ${!variable}`
- Pone todos los caracteres en mayúsculas:
`echo ${variable^^}`