linux - shell get parse arguments -
this question has answer here:
i want use shell script this:
myscript.sh -key keyvalue how can keyvalue ? tried getopts, requires key single letter!
use manual loop such as:
while :; case $1 in -key) shift echo $1 break ;; *) break esac done
Comments
Post a Comment