Parsing Command Line Arguments in Linux Using Shift
<span>shift</span> is a built-in command in <span>Bash</span> that shifts the positional parameters to the left, reassigning the values of <span>$1</span>, <span>$2</span>, <span>$3</span>, etc. $ bash -c "help shift" shift: shift [n] The positional parameters from $N+1 … are renamed to $1 … If N is not given, it is assumed to be 1. It is … Read more