Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Oct 2001 13:46:32 -0600 (MDT)
From:      FreeBSD user <freebsd@XtremeDev.com>
To:        The Almonds <cjalmond@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Newbie-Simple C Shell programming help
Message-ID:  <20011026134417.O35370-100000@Amber.XtremeDev.com>
In-Reply-To: <20011026193434.45814.qmail@web9607.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
#!/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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011026134417.O35370-100000>