Validating bash script argument by flag name and value

前端 未结 0 1970
旧巷少年郎
旧巷少年郎 2021-01-26 09:31

I have a bash script that I want invoked using a require -p argument that is of type string/alphanumeric. For example:

sh myscript.sh -p abc123


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