Skip to main content

Bash built-in command that shifts the arguments passed to the calling function or script by a specified number of places.

# To move arguments by one place dropping the first argument:
shift

# To move arguments by N places dropping the first N arguments:
shift <N>