码迷,mamicode.com
首页 >  
搜索关键字:getopts用法小结    ( 1个结果
shell编程——getopts用法小结
shell脚本或函数传参数,可以访问位置变量来使用参数的值。但是在参数比较复杂的情况下,最好使用getopts处理,用来处理命令行的选项和参数。语法格式:getoptsoption_stringargs若script.sh参数为-ffilename-eeditor-pcat,即./script.sh-ffilename-eeditor-pcat选项和参数的..
分类:系统相关   时间:2016-06-08 17:23:05    阅读次数:336
1条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!