August 1999
Intermediate to advanced
1000 pages
83h 9m
English
shift [n]
shift [variable]
*
shift [n] The shift command is a shell built-in command that traverses either the argument list of the shell or a list of field-separated words.
The positional parameters from $n +1... are renamed $1.... The default n is 1.
The components of argv, or variable , if supplied, are shifted to the left, discarding the first component. It is an error for the variable not to be set or to have a null value.
The positional parameters from $n +1 $n +1... are renamed $1.... The default n is 1. The parameter n can be any arithmetic expression ...
Read now
Unlock full access