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?