bash argument case for args in $@

后端 未结 5 1821
无人共我
无人共我 2021-02-02 12:14

I have a script with a long list of OPTIONAL arguments. some have associated values.

Such as:

.script --first 2012-12-25 --last 2012-12-26 --copy --remov         


        
5条回答
  •  误落风尘
    2021-02-02 12:35

    If you have more than one option, and especially options with values mixed with options without values, let getopts do the work for you.

提交回复
热议问题