使用getopts是比較好的做法,getopts可以提供參數旗標,讓使用者根據旗標來設定參數的值。 ... while getopts “a:b:c:?” argv do case $argv in a) VAR1=$OPTARG ...
確定! 回上一頁