Command shift


Name

shift Shifts positional arguments or sequence variables

Synopsis

shift [n]
shift variable [n]


Examples


Example
set a b c d e
shift
echo $*

Result
b c d e

Example
shift 2
echo $*

Result
d e


Example
a=(1 2 3 foo bar spam)
shift a 2
echo $a

Result
3 foo bar spam





Commands
CategoryCommands
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki