shift
is a bash
built-in which kind of removes arguments in beginning of the argument list. Given that the arguments provided to the script are 3 available in $1, $2, $3, then a call to shift
will make $2 the new $1. a shift 2
will shift by two making new $1 the old $3. for more info see here
No comments:
Post a Comment