- 博客(2)
- 收藏
- 关注
转载 shell 编程
1if语句 if语句的语法格式: if condition1 then command-list elif condition2 then command-list else command-list fi if语句以给定的命令command的出口状态作为判断条件,如果出口状态为0则执行紧随着then自己之后的命令。fi表示if语句的
2014-07-15 12:53:55
321
转载 linux shell getopts
1、getopts使用方式: g e t o p t s一般格式为: getopts option_string variable g e t o p t s读取o p t i o n s t r i n g,获知脚本中使用了有效选项。 g e t o p t s查看所有以连字符开头的参数,将其视为选项,如果输入选项,将把这与o p t i o n s t r i n g对比,如果匹
2014-07-15 10:53:08
184
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人