From 5dcba59d2d61baaf36ee8c9d98b9ca3998d9ed26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Here=C3=B1=C3=BA?= Date: Thu, 20 Feb 2025 00:02:20 -0300 Subject: [PATCH] {: add Spanish translation (#15435) Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec --- pages.es/common/{.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pages.es/common/{.md diff --git a/pages.es/common/{.md b/pages.es/common/{.md new file mode 100644 index 0000000000..904a33bfda --- /dev/null +++ b/pages.es/common/{.md @@ -0,0 +1,36 @@ +# Curly brace + +> Sintaxis de intérprete de comandos polivalente. +> Más información: . + +- 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^^}`