Merge pull request #87 from fanofxiaofeng/patch-1
Some checks failed
Bash tutorial CI / Generating pages (push) Has been cancelled

Update condition.md
This commit is contained in:
Ruan YiFeng
2024-11-27 09:18:03 +08:00
committed by GitHub

View File

@@ -156,7 +156,6 @@ fi
以下表达式用来判断文件状态。
- `[ -a file ]`:如果 file 存在,则为`true`
- `[ -b file ]`:如果 file 存在并且是一个块(设备)文件,则为`true`
- `[ -c file ]`:如果 file 存在并且是一个字符(设备)文件,则为`true`
- `[ -d file ]`:如果 file 存在并且是一个目录,则为`true`