官术网_书友最值得收藏!

Until loop

For completeness, we have included the until loop. It is not used very often and is almost the same as a do while loop. Notice that its condition and operation is consistent with incrementing a counter until a value is reached:

#!/bin/bash
CTR=1
until [ ${CTR} -gt 9 ]
do
echo "CTR var: ${CTR}"
((CTR++)) # Increment the CTR variable by 1
done
echo "Finished"
主站蜘蛛池模板: 长治市| 宜州市| 阿拉善右旗| 安化县| 买车| 宁明县| 德令哈市| 湛江市| 敦化市| 六安市| 棋牌| 西丰县| 拉孜县| 三门峡市| 乌兰浩特市| 苍山县| 荔浦县| 大宁县| 汕尾市| 丘北县| 西贡区| 娄烦县| 萝北县| 四平市| 嫩江县| 星座| 澳门| 万宁市| SHOW| 桦南县| 东丽区| 乌鲁木齐市| 托克逊县| 济宁市| 姜堰市| 启东市| 呼伦贝尔市| 江西省| 怀来县| 诸暨市| 宣武区|