break , continue , exit
#!/bin/bash . /etc/init.d/functions for i in `seq 1 10`;do if [ $i -eq 3 ];then #continue #没有数字3 break #exit fi echo $i done echo "ok~"
时间: 2024-10-12 16:07:20
#!/bin/bash . /etc/init.d/functions for i in `seq 1 10`;do if [ $i -eq 3 ];then #continue #没有数字3 break #exit fi echo $i done echo "ok~"