Is there a standard UNIX tool to repeat a command any number of times?
Posted
by Jørn Schou-Rode
on Super User
See other posts from Super User
or by Jørn Schou-Rode
Published on 2010-03-22T13:55:15Z
Indexed on
2010/03/22
14:01 UTC
Read the original article
Hit count: 354
This is probably dead easy, but is there a simple way to write a command once in the console, and have it executed n
times, where n
is specified at runtime? Something like this:
repeat 100 echo hello
Does such command exist (assume typical Linux installation)?
Or would I write to do some kind of loop in bash?
© Super User or respective owner