bash until while for loop循环操作示例代码

代码语言:bash

所属分类:其他

代码描述:bash until while for loop循环操作示例代码

代码标签: for loop 循环 操作 示例

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

#!/bin/bash
COUNT=0
# bash until loop
until [ $COUNT -gt 5 ]; do
        echo Value of count is: $COUNT
        let COUNT=COUNT+1
done 
COUNT=6
# bash while loop
while [ $COUNT -gt 0 ]; do
	echo Value of count is: $COUNT
	l.........完整代码请登录后点击上方下载按钮下载查看

网友评论0