Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://comet.sai.msu.ru/UNIXhelp/scrpt/scrpt2.6.2.html
Дата изменения: Fri Jan 17 12:43:20 1997 Дата индексирования: Tue Oct 2 01:15:14 2012 Кодировка: Поисковые слова: sts-64 |
The for loop notation has the general form:
for var in list-of-words do commands done
commands is a sequence of one or more commands separated by a newline or ; (semicolon).
The reserved words do and done must be preceded by a newline or ; (semicolon). Small loops can be written on a single line. For example:
for var in list; do commands; done