continue
continue
结束本次循环,继续执行下一个for,while或until循环。
概要
|
|
主要用途
- 结束本次循环,继续执行下一个for,while或until循环;可指定从第几层循环继续执行。
参数
n(可选):大于等于1的整数,用于指定从第几层循环继续执行。
返回值
返回状态为成功除非n小于1。
例子
|
|
|
|
注意
- 该命令是bash内建命令,相关的帮助信息请查看
help
命令。
- 原文作者:lex
- 原文链接:https://blog.mineor.xyz/posts/linux%E5%91%BD%E4%BB%A4/continue/
- 版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议进行许可,非商业转载请注明出处(作者,原文链接),商业转载请联系作者获得授权。