Unix |
Unix v6 |
|
![]() |
shift(1) |
![]() |
shift adjust Shell arguments is used in Shell command
files to shift the argument list left by 1, so that old can
now be referred to by and so forth. is useful to iterate
over several arguments to a command file. For example, the
command file : loop
if $1x = x exit
pr 3 $1
shift
goto loop prints each of its arguments in 3-column format.
is executed within the Shell. sh (I)
![]() |
shift(1) | ![]() |