Linux shell编程基础 七、流程控制
发布时间:2013-05-08 18:04:31 所属栏目:Linux 来源:站长网
导读:流程控制 if-then if 条件; then 动作 fi if-then-else if 条件; then 动作1 else 动作2 fi if 条件1; then 动作1 elif 条件2; then 动作2 else 动作3 fi for f
|
流程控制
if-then if 条件; then 动作 fi if-then-else if 条件; then 动作1 else 动作2 fi if 条件1; then 动作1 elif 条件2; then 动作2 else 动作3 fi for for 变量 in 列举 do 命令 done while while 条件 do 命令 done until until 条件 do 命令 done break continue break跳出当前循环,continue提前进入下一次循环 (编辑:佛山站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |

