Skip site navigation (1)Skip section navigation (2)
Date:      09 Jul 2002 15:19:02 -0500
From:      Kirk Strauser <kirk@strauser.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: How do I repeat a command N times?
Message-ID:  <87znx0vemh.fsf@pooh.int>
In-Reply-To: <006101c22781$e66c8010$1200a8c0@gsicomp.on.ca>
References:  <003101c22768$80ddb250$0801a8c0@customfilmeffects.com> <20020709200449.3fcf1ba7.fxn@retemail.es> <8765zowwmo.fsf@pooh.int> <006101c22781$e66c8010$1200a8c0@gsicomp.on.ca>

next in thread | previous in thread | raw e-mail | index | archive | help

At 2002-07-09T19:50:38Z, "Matthew Emmerton" <matt@gsicomp.on.ca> writes:

> I've found that sh + jot works best in my experience, and doesn't involve
> any counter math and comparisons:
> 
> for i in `jot 1000`
> do
>   <insert command to run here>
> done

That's a nice solution, but many of the boxes nearby (mostly Debian Linux)
don't have jot installed.  The Perl hack works on the default installs of
all of the machines I administer.
-- 
Kirk Strauser
The Strauser Group - http://www.strausergroup.com/

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?87znx0vemh.fsf>