[bash] Is there a better way to run a command N times in bash?