Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jul 2002 22:26:25 +0200 (CEST)
From:      Jonas Anderson <holker@null.dk>
To:        David Smithson <david@customfilmeffects.com>
Cc:        Jim Sander <jim@federation.addy.com>, FreeBSD-Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: How do I repeat a command N times?
Message-ID:  <Pine.LNX.4.21.0207092225070.2370-100000@mimer.null.dk>
In-Reply-To: <00fd01c2277f$e67eba70$0801a8c0@customfilmeffects.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 9 Jul 2002, David Smithson wrote:

> > builtin... "repeat 10 date"
> 
> This is -- by far -- the simplest solution and satisfies my particular need.
> Thanks.

Good that you found the answer, another time, if you're looking at using
perl, perl has the for construct that can take this form:

perl -e '`do whichever` for(1..n);'

-- 
-Jonas


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?Pine.LNX.4.21.0207092225070.2370-100000>