2012年10月21日 - getopts必須要搭配while與case來達成,直接看例子: while getopts “a:b:c:?” argv do case ...
ithelp.ithome.com.tw