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.hxwzsj.com/article/gcoegp.html

其他资讯

Copyright © 2025 青羊区翔捷宏鑫字牌设计制作工作室(个体工商户) All Rights Reserved 蜀ICP备2025123194号-14
友情链接: 营销型网站建设 成都网站建设流程 成都网站设计 成都定制网站建设 外贸营销网站建设 成都网站设计 网站制作报价 成都网站建设 外贸网站建设 定制网站建设 网站制作 成都响应式网站建设 LED网站设计方案 泸州网站建设 成都网站建设 网站制作 网站建设 成都网站建设 企业网站建设 企业网站设计 专业网站建设 成都网站制作公司