Update sleep.md (#448)

清晰文档实例, 并添加`infinity`参数选项
This commit is contained in:
烟草的香味 2022-11-15 17:44:09 +08:00 committed by GitHub
parent 3f09e8ee4c
commit 60208b4338
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -15,9 +15,13 @@ sleep(参数)
### 参数
时间:指定要暂停时间的长度
时间:指定要暂停时间的长度, 包括如下:
时间长度,后面可接 s、m、h 或 d其中 s 为秒m 为 分钟h 为小时d 为日数。
* `2s`: 2秒
* `2m`: 2分钟
* `2h`: 2小时
* `2d`: 2天
* `infinity`: 永久
### 实例
@ -36,4 +40,3 @@ for ((i=0;$i<=100;i++))
echo
```