135-1821-9792

while与until循环基本语法

while与until循环基本语法

#!/bin/bash

# demo while

i=1

while [ $i -lt 10 ];do
  echo $i
  (( i++ ))
done

# demo until

i=1

until [ $i -gt 10 ];do
  echo $i
  (( i++ ))
done

新闻名称:while与until循环基本语法
转载来源:http://www.wenjiangwz.cn/article/gcoegp.html

其他资讯



Copyright © 2009-2022 www.wenjiangwz.cn 成都网站建设公司 版权所有 蜀ICP备19037934号