linux shell while循环

时间:2021-04-23 12:03:54   收藏:0   阅读:0

 

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

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!