From owner-freebsd-questions Tue Jul 9 12:48:36 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 4471937B401 for ; Tue, 9 Jul 2002 12:48:27 -0700 (PDT) Received: from aberlour1.sirsi.com (aberlour.sirsi.com [150.147.64.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CEFA43E5E for ; Tue, 9 Jul 2002 12:48:07 -0700 (PDT) (envelope-from erics@sirsi.com) Received: from stlmail.dra.com (stlmail.dra.com [192.65.218.119]) by aberlour1.sirsi.com (8.12.1/8.12.1) with ESMTP id g69Gn9Ou021571; Tue, 9 Jul 2002 11:49:09 -0500 (CDT) Received: by stlmail.dra.com with Internet Mail Service (5.5.2653.19) id <3F511G4C>; Tue, 9 Jul 2002 11:58:47 -0500 Message-ID: From: Eric Six To: "'David Smithson'" , "FreeBSD (E-mail)" Subject: RE: How do I repeat a command N times? Date: Tue, 9 Jul 2002 11:58:42 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" 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 A simple perl script would work... #/bin/perl for ( $count=1; $count < 607 ; $count++ ) { commandtoexecute; } Cheers Eric -----Original Message----- From: David Smithson [mailto:david@customfilmeffects.com] Sent: Tuesday, July 09, 2002 11:49 AM To: FreeBSD-Questions Subject: How do I repeat a command N times? Hello friends. I want to repeat a command 607 times and stop. How do I accomplish this besides writing a script that's 607 lines long? -- David Smithson - Systems Administrator Custom Film Effects 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