continue 继续执行循环,break跳出循环。
[root@hunt1574 ~]# cat test2.sh
#!/bin/bash for index in 1 2 3 4 5 6 7 do if [ $index -le 3 ];then echo "continue" continue fi echo $index if [ $index -ge 6 ];then echo "break" break fi done[root@hunt1574 ~]# sh test2.sh
continue continue continue 4 5 6 break