Home OS X
OS X Syntax

shift

Shift positional parameters.

SYNTAX

      shift [variable]
    


Without arguments, discards argv and shifts the members of argv to the left.

It is an error for argv not to be set or to have less than one word as value. With variable, performs the same function on variable.

"Discovery consists of seeing what everybody has seen and thinking what nobody has thought. Albert Szent-Gyorgyi

Related commands:



Equivalent BASH command:

shift
- Shift positional parameters.



Back to the Top

Simon Sheppard
SS64.com