1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

$: add Chinese translation (#15364)

* $: add zh translation

* $: sync link

* Update pages.zh/common/$.md

Co-authored-by: P2Tree <dicksonliuming@gmail.com>

* Update pages.zh/common/$.md

Co-authored-by: P2Tree <dicksonliuming@gmail.com>

* Update pages.zh/common/$.md

Co-authored-by: P2Tree <dicksonliuming@gmail.com>

---------

Co-authored-by: P2Tree <dicksonliuming@gmail.com>
This commit is contained in:
witt 2025-01-04 10:38:28 +08:00 committed by GitHub
parent ca9b286a30
commit 8ced09c06e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

24
pages.zh/common/$.md Normal file
View file

@ -0,0 +1,24 @@
# Dollar sign
> 展开 Bash 变量。
> 更多信息:<https://gnu.org/software/bash/manual/bash.html#Shell-Variables>.
- 打印变量的值:
`echo ${{变量名}}`
- 打印上一个命令的退出状态:
`echo $?`
- 打印 0 到 32767 之间的随机数:
`echo $RANDOM`
- 打印其中一个提示字符串:
`echo ${{PS0|PS1|PS2|PS3|PS4}}`
- 运行 `命令` 并展开它的输出。与将 `命令` 括在反引号中相同:
`$({{命令}})`