shell getopts. #!/bin/bash while getopts "a:" opt; do case $opt in a) echo "this is -a the arg is ! $OPTARG" ;; \?) echo "Invalid option: -$OPTARG" ;; esac ...
確定! 回上一頁