Home OS X
OS X Syntax

repeat

Execute a command multiple times.

SYNTAX
      repeat count command 

Options
   count       Number of times to execute

   command     Must be a simple command, not an alias, a pipeline,
	       a command list or a parenthesized command list
	       (but it may have arguments)

Notes
I/O redirections occur exactly once,even if count is 0.

This is a tcsh shell command.

"If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then a third time with a tremendous whack!" - Sir Winston Spencer Churchill

Related commands:

exec - Execute a command
if - Conditionally perform a command
foreach - Expand words, and execute commands
nohup - Run a command immune to hangups

Equivalent BASH command:

!l - Repeat last command



Back to the Top

Simon Sheppard
SS64.com