2007-03-02 getopts 仕事 shell while getopts ab:c OPT do case $OPT "a" ) $AA="true" ;; "b" ) $BB=$OPTARG ;; "c" ) $CC="true" ;; * ) 〜〜 esac done