shell 流程控制语句测试

来源:互联网 发布:加工中心简单编程实例 编辑:程序博客网 时间:2024/05/22 00:22

1:if else

测试结果:


2:for


结果:可见只有第一种和第四个for循环是对的

3:while

结果

4:until

结果

5:case

结果

6:select

结果