Repeat

repeat

Execute a command a specified number of times.

Arguments

  • $1 (int): Number of times to repeat the command
  • $2 (string): Command and arguments to execute

Exit codes

  • 0: All repetitions completed
  • 1: First argument is not a positive integer