什么是条件
- 条件只不过是计算结果为布尔值(真或假)的表达式。
- 换句话说,条件可以是true,也可以是false。
- 条件被用在shell脚本循环语句和if语句中。
bash中可以使用if命令来测试条件。 例如 仅在周五晚上备份:
If today is Friday execute tar command otherwise print an error message on screen.
日期:2019-04-16 23:59:04 来源:oir作者:oir
bash中可以使用if命令来测试条件。 例如 仅在周五晚上备份:
If today is Friday execute tar command otherwise print an error message on screen.