while getopts ...; do ... done. getopts will parse options and their possible arguments. It will stop parsing on the first non-option argument (a string ...
確定! 回上一頁