add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

36
pages.zh/common/{.md Normal file
View File

@@ -0,0 +1,36 @@
# 大括号
> 多用途的 shell 语法。
> 更多信息:<https://www.gnu.org/software/bash/manual/bash.html#index-hash>。
- 隔离变量名:
`echo ${HOME}work`
- 大括号展开序列:
`echo {1..3} {a..c}{dir1,dir2,dir3}`
- 在返回文本之前检查 `variable` 是否已设置:
`echo ${variable:+variable is set and contains $variable}`
-`variable` 未设置的情况下设置默认值:
`echo ${variable:-default}`
- 返回 `variable` 的字符长度:
`echo ${#variable}`
- 返回字符串切片:
`echo ${variable:3:7}`
- 递归展开 `variable`
`echo ${!variable}`
- 将所有字符大写:
`echo ${variable^^}`