One way would be:
let n=1
while [ $n -le 5 ]
do
'command'
let n=n+1
done
This will run 'command' 5 times then you can do what ever else you
want after the loop exits.
Carson
Carson R. Wilcox
Senior Systems Architect
Fujitsu Consulting
Tampa, FL
---------- Original Message ----------------------------------
From: Smitty <a.smitty@verizon.net>
Reply-To: slug@nks.net
Date: Thu, 5 Sep 2002 15:04:19 -0400
>What would the syntax be if I wanted to repeat a command n times?
>And if after repeating the command n times, follow it by another
command?
>Smitty
>
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:57:22 EDT