Read out value from the option of getopts

前端 未结 0 1348
星月不相逢
星月不相逢 2021-01-21 20:54

How can I read the value from the getopts option. Here\'s an example:

while getopts "h:n" opt;
do
case "$opt" in 
h) echo "Help"
;;
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题