摘要: while 语句 while 循环用于不断执行一系列命令,也用于从输入文件中读取数据。其语法格式为: 实例: #!/bin/bash int=1 while(( $int<=5 )) do echo $int let "int++" done 运行脚本,输出: 1 2 3 4 5 if else-i 阅读全文
posted @ 2021-07-03 09:37 局域网外 阅读(34) 评论(0) 推荐(0) 编辑