repeat - Run the given command repeatedly


NAME

repeat - Run the given command repeatedly


SYNOPSIS

repeat COMMAND [ARGS]


ENVIRONMENT

REPEAT_TIMES

How many times to repeat the given command. Default is -1 which means infinite.

REPEAT_COUNT

How many times the command has been ran. It is not a variable repeat(1) itself takes as input, but passes to COMMAND for its information.

REPEAT_UNTIL

Stop repeat(1) if COMMAND exists with this return code. By default the return code is not checked.

REPEAT_DELAY

Sleep interval between invocations. In seconds, by default. See sleep(1) for valid parameters, eg. "10m" for 10 minutes. Default is no delay.

The exceptional value for REPEAT_DELAY is enter, for which repeat(1) waits until the user presses Enter on the terminal, to repeat the given command.

 repeat - Run the given command repeatedly