To Index

 Documented in Volume 1 of the UNIX Programmers Manual.


 % repeat 10 /bin/sh -c "(ps; sleep 5)"
  will do a ps and then wait 5 seconds. This will happen 10 times.
  (Since repeat is a csh command, and since csh interprets parentheses 
  as part of a "for" construct, we must invoke the Bourne shell and pass
  the multiple commands in parentheses. These are protected from csh by
  means of the double-quotes. The -c option causes sh to use the quoted
  string as a command.)

To Index