Revision [648]

This is an old revision of CommandShift made by DavidLee on 2009-07-26 18:17:00.

 

Command shift


Name

shift Shifts positional arguments or sequence variables

Synopsis

shift [n]
shift variable [n]


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





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