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

16
pages.zh/common/while.md Normal file
View File

@@ -0,0 +1,16 @@
# 当
> 简单的 shell 循环,当返回值为零时重复执行。
> 更多信息:<https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_04_09>。
- 读取 `stdin` 并对每一行执行操作:
`while read line; do echo "$line"; done`
- 每秒执行一个命令,一直循环:
`while :; do {{command}}; sleep 1; done`
- 直到命令失败为止执行命令:
`while {{command}}; do :; done`