mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-09 16:53: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:
parent
744aee3387
commit
5dcba59d2d
1 changed files with 36 additions and 0 deletions
36
pages.es/common/{.md
Normal file
36
pages.es/common/{.md
Normal 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^^}`
|
Loading…
Add table
Reference in a new issue