mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 01:22:09 +02:00
$: add Spanish translation (#14843)
Co-authored-by: Darío Hereñú <magallania@gmail.com> Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
parent
4486e86709
commit
35239955b4
1 changed files with 24 additions and 0 deletions
24
pages.es/common/$.md
Normal file
24
pages.es/common/$.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Dollar sign
|
||||
|
||||
> Expande una variable Bash.
|
||||
> Más información: <https://gnu.org/software/bash/manual/bash.html#Shell-Variables>.
|
||||
|
||||
- Imprime una variable:
|
||||
|
||||
`echo ${{VARIABLE}}`
|
||||
|
||||
- Imprime el valor de retorno (exit status) del comando anterior:
|
||||
|
||||
`echo $?`
|
||||
|
||||
- Imprime un número aleatorio entre 0 y 32767:
|
||||
|
||||
`echo $RANDOM`
|
||||
|
||||
- Imprime una de las cadenas de prompt:
|
||||
|
||||
`echo ${{PS1|PS2|PS3|PS4}}`
|
||||
|
||||
- Expande la salida del `comando` al ejecutarlo. Igual que encerrar `comando` en comillas inversas:
|
||||
|
||||
`$({{comando}})`
|
Loading…
Add table
Reference in a new issue