From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 5 May 2004 13:32:13 +0300 From: Dolgov OV To: community@altlinux.ru Subject: Re: [Comm] =?Windows-1251?Q?=D6=E8=EA=EB_=E2_=EA=EE=EC=E0=ED=E4?= =?Windows-1251?Q?=ED=EE=E9_=F1=F2=F0=EE=EA=E5.?= Message-Id: <20040505133213.43cad0c9.dov@media-link.info> In-Reply-To: <4098B8E6.6000902@zaz.zp.ua> References: <20040505122804.2be2c70a.dov@media-link.info> <4098B8E6.6000902@zaz.zp.ua> X-Mailer: Sylpheed version 0.9.6claws (GTK+ 1.2.10; i586-alt-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1251 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at media-link.info X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.1.4 Precedence: list Reply-To: community@altlinux.ru List-Id: Mailing list for ALT Linux users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 May 2004 10:57:08 -0000 Archived-At: List-Archive: List-Post: On Wed, 05 May 2004 12:50:30 +0300 Gennadiy Redko wrote: > > надо что-то типа > > for i=1 ; do "чего-то над $i" && i=i+1 ; done > > > > В общем выполнять цикл до тех пор, пока do чего-то (а конкретней > > wget) не вернет ошибку. > > > $ man bash > > ..................................................................... > ............................ while list; do list; done > until list; do list; done > The while command continuously executes the do list as > long as > the last command in list returns an exit status of > zero. The > until command is identical to the while command, except > > that the > test is negated; the do list is executed as long as > > the last > command in list returns a non-zero exit status. The > exit > status > of the while and until commands is the exit status of > > the last > do list command executed, or zero if none was executed. > ..................................................................... > ..................................... >Это не то, что Вы хотели? Это я читал, и даже на русском :-\ Меня интересует КАК заставить переменную $i принимать последовательно значения 1,2,3 и т.д. Команду for я привел для примера, дабы попытаться _на пальцАх_ изложить свою сумбурную мысль :-) P.S. Как говаривал один мой знакомы программист, пытаясь ответить на очередной мой вопрос: "Трудно понять логику непрофессионала..." -- С наилучшими, Олег Долгов Registered Linux user #315454