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:
parent
ca9b286a30
commit
8ced09c06e
1 changed files with 24 additions and 0 deletions
24
pages.zh/common/$.md
Normal file
24
pages.zh/common/$.md
Normal 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}}`
|
||||
|
||||
- 运行 `命令` 并展开它的输出。与将 `命令` 括在反引号中相同:
|
||||
|
||||
`$({{命令}})`
|
Loading…
Add table
Reference in a new issue