📜  shell 脚本 while 循环示例 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:58.079000             🧑  作者: Mango

代码示例4
while check1
do
    # Loop while check1 is successful (returns 0)

    if check1
    then
        echo 'check1 was successful'
    fi

done