设为首页 加入收藏

TOP

Shell脚本中常用的控制结构
2014-11-24 14:06:09 来源: 作者: 【 】 浏览:1
Tags:Shell 脚本 常用 控制 结构

if [ test_command ]


then


fi


if [ test_command ]


then


else


fi


elif [ test_command ]


then


...


...


else (optional)


fi




done




...


...


*) (可选 - any other value)


commands_to_execute_for_no_match


esac


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇C++应尽量使用的特性和应避免的特.. 下一篇C语言的字符串分解——strtok函数..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: