linux shell while循环

 

1、测试1

[root@centos7 test2]# i=0
[root@centos7 test2]# max=5
[root@centos7 test2]# while((i<max));do echo $i;((i++));done
0
1
2
3
4

 

posted @ 2021-04-22 18:47  小鲨鱼2018  阅读(71)  评论(0编辑  收藏  举报