How does shell get parameters in a way similar to cmd-D=xxxx

pass parameters in the shell script, using a way similar to cmd-param1=xxx-param2=xxx, how to get the corresponding parameters in shell.

Mar.17,2021

is usually passed parameters directly, and then in the shell script to get them respectively using $1 and so on. I don't know why you want to pass parameters in this way, or you can try to handle it interactively

.
  

getopts or getopt.

Menu