From owner-freebsd-questions Tue Jul 9 9:52:46 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 D6E4537B401 for ; Tue, 9 Jul 2002 09:52:43 -0700 (PDT) Received: from fw1.wamnet.com (efw1.wamnet.com [67.98.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F06443E58 for ; Tue, 9 Jul 2002 09:52:42 -0700 (PDT) (envelope-from lcarmich@wamnet.com) Received: from ndm.wamnet.com ([172.17.38.2]) by fw1.wamnet.com (8.12.2/8.12.2) with ESMTP id g69GqaKG010859; Tue, 9 Jul 2002 11:52:36 -0500 (CDT) Received: from ds.cops.wamnet.com (ds.cops.wamnet.com [172.17.31.2]) by ndm.wamnet.com (8.9.1a/8.9.1) with ESMTP id LAA2293193; Tue, 9 Jul 2002 11:52:36 -0500 (CDT) Received: from y.dev.wamnet.com (y.dev.wamnet.com [172.17.27.37]) by ds.cops.wamnet.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) via SMTP id LAA84216; Tue, 9 Jul 2002 11:52:35 -0500 (CDT) Date: Tue, 9 Jul 2002 11:52:35 -0500 (CDT) From: Lee J Carmichael X-Sender: lcarmich@y.dev.wamnet.com To: David Smithson Cc: FreeBSD-Questions Subject: Re: How do I repeat a command N times? In-Reply-To: <003101c22768$80ddb250$0801a8c0@customfilmeffects.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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