[CentOS] repeat command

Thu May 2 21:50:13 UTC 2013
Les Mikesell <lesmikesell at gmail.com>

On Thu, May 2, 2013 at 4:16 PM,  <m.roth at 5-cent.us> wrote:
>
>> Basically repeats some command ten times.  Is it available on Centos 6
>> and what package provides it?
>
> Would never have looked for it - for (( i=-; $i < 10; i++ )); do echo $i;done
>

I'm even more old-school with bourne syntax:
i=0
while [ $i -lt 10 ]
do echo $i
i=expr `$i + 1`
done

Just replace the 'echo $i' whit whatever command you want - or add it
on the next line so you can see the iteration count too.

--
  Les Mikesell
    lesmikesell at gmail.com