From owner-freebsd-questions Fri Oct 26 12:46:50 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.XtremeDev.com (xtremedev.com [216.241.38.65]) by hub.freebsd.org (Postfix) with ESMTP id F03CC37B40A for ; Fri, 26 Oct 2001 12:46:38 -0700 (PDT) Received: from xtremedev.com (xtremedev.com [216.241.38.65]) by mail.XtremeDev.com (Postfix) with ESMTP id 1BDFB70614; Fri, 26 Oct 2001 13:46:32 -0600 (MDT) Date: Fri, 26 Oct 2001 13:46:32 -0600 (MDT) From: FreeBSD user To: The Almonds Cc: freebsd-questions@freebsd.org Subject: Re: Newbie-Simple C Shell programming help In-Reply-To: <20011026193434.45814.qmail@web9607.mail.yahoo.com> Message-ID: <20011026134417.O35370-100000@Amber.XtremeDev.com> 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 #!/bin/sh N=1 while [ $N -le 100 ] do echo $N N=`expr $N+1` done And /bin/sh is not a c shell. On Fri, 26 Oct 2001, The Almonds wrote: > All, > > I am trying to run a program via a c shell 100 times > for a stress test. > > I have > #!/bin/sh > for 1 in 1 2 3 > > do > > x > > done > > as you can see this is painful if I want to do 100. > Anyone know of a quick way to do this for 100 loops. > > Curtis > > __________________________________________________ > Do You Yahoo!? > Make a great connection at Yahoo! Personals. > http://personals.yahoo.com > > 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