📜  退出 while loop bash - 任何代码示例

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

代码示例1
#!/bin/bash

for number in 10 11 12 13 14 15; do

    if [ $number -eq 14 ]; then

        break

    fi

    echo "Number: $number"

done