摘要:
一、until介绍 特点:条件为假就进入循环;条件为真就退出循环 二、until语法 until expression [ 1 -eq 1 ] (( 1 >= 1 )) do command command ... done 三、测试 例1、打印10-20 #!/bin/bashnum=10unti 阅读全文
posted @ 2022-04-05 22:13
屯子里唯一的架构师
阅读(195)
评论(0)
推荐(0)
摘要:
一、while介绍 特点:条件为真就进入循环;条件为假就退出循环,一般应用在未知循环次数的环境。 二、while循环语法 while [ 表达式 ] (注意:条件为真时while才会循环,条件为假,while循环终止,条件中可以是五大运算) do command... done while [ 1 阅读全文
posted @ 2022-04-05 20:01
屯子里唯一的架构师
阅读(309)
评论(0)
推荐(0)

浙公网安备 33010602011771号