摘要:
今天看学习了getopets总结下结果:作用:用这个东东可以打命令一样 <命令 -选项 参数>#!/bin/bashwhile getopts xyz: args 2> /dev/nulldo case $args in x) echo " you entered -x";; y) echo " you entered -y";; z) echo " you entered -z"; echo " \$OPTARG is $OPTARG ";; \?) e... 阅读全文