From owner-freebsd-questions Tue Jul 9 9:56:12 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1A3E37B400 for ; Tue, 9 Jul 2002 09:56:08 -0700 (PDT) Received: from rotini.customfilmeffects.com (rotini.customfilmeffects.com [66.134.82.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FAF343E58 for ; Tue, 9 Jul 2002 09:56:08 -0700 (PDT) (envelope-from david@customfilmeffects.com) Received: from ethel (ethel.customfilmeffects.com [192.168.1.8]) by rotini.customfilmeffects.com (8.11.6/8.11.6) with SMTP id g69GhUR08282; Tue, 9 Jul 2002 09:43:30 -0700 Message-ID: <004201c22769$8468df70$0801a8c0@customfilmeffects.com> From: "David Smithson" To: "Lee J Carmichael" Cc: "FreeBSD-Questions" References: Subject: Re: How do I repeat a command N times? Date: Tue, 9 Jul 2002 09:56:06 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Aha. A FOR loop? ----- Original Message ----- From: "Lee J Carmichael" To: "David Smithson" Cc: "FreeBSD-Questions" Sent: Tuesday, July 09, 2002 9:52 AM Subject: Re: How do I repeat a command N times? > For ksh: > > let x=0 > let stop=607 > > while [[ $x -le $stop ]] > do > # whatever you'd like > echo $x > let x=$x+1 > done > > I guess you could make 'x' to 'n'... ;) > > Take Care, > > -------- > Lee Carmichael > Service Architect - WorkSpace > > WAM!NET Inc. > 655 Lone Oak Rd Building A > Eagan, MN 55121 > > ph# 651-256-5292 > email: lcarmich@wamnet.com > > On Tue, 9 Jul 2002, David Smithson wrote: > > > Hello friends. I want to repeat a command 607 times and stop. How do I > > accomplish this besides writing a script that's 607 lines long? > > > > -- > > David Smithson - Systems Administrator > > Custom Film Effects > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message