From owner-freebsd-questions Tue Jul 9 13:26:33 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 449F037B400 for ; Tue, 9 Jul 2002 13:26:31 -0700 (PDT) Received: from mimer.null.dk (mimer.null.dk [130.228.230.9]) by mx1.FreeBSD.org (Postfix) with SMTP id 52F1943E3B for ; Tue, 9 Jul 2002 13:26:28 -0700 (PDT) (envelope-from holker@null.dk) Received: (qmail 13796 invoked by uid 543); 9 Jul 2002 20:26:25 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 9 Jul 2002 20:26:25 -0000 Date: Tue, 9 Jul 2002 22:26:25 +0200 (CEST) From: Jonas Anderson To: David Smithson Cc: Jim Sander , FreeBSD-Questions Subject: Re: How do I repeat a command N times? In-Reply-To: <00fd01c2277f$e67eba70$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 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