Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://comet.sai.msu.ru/UNIXhelp/scrpt/scrpt2.1.3.html
Дата изменения: Fri Jan 17 12:43:19 1997 Дата индексирования: Tue Oct 2 01:05:37 2012 Кодировка: Поисковые слова: md-11 |
Usually only nine command line arguments can be accessed using positional parameters. The shift command gives access to command line arguments greater than nine by shifting each of the arguments.
The second argument ($2) becomes the first ($1), the third ($3) becomes the second ($2) and so on. This gives you access to the tenth command line argument by making it the ninth. The first argument is no longer available.
Successive shift commands make additional arguments available. Note that there is no "unshift" command to bring back arguments that are no longer available!