get parameters in shell

there is a common code that we can use to get all the parameters:

shift is a shell builtin that operates on the positional parameters. Each time you invoke shift, it “shifts” all the positional parameters down by one like in javascript, ex: $2 becomes $1$3 becomes $2$4 becomes $3, etc.



Leave a Reply