Site Tools


repeat_command
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


repeat_command [2006/08/29 16:08] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +#$EPIC: repeat_command.txt,v 1.4 2006/08/19 06:07:20 sthalik Exp $
 +======Synopsis:======
 +__repeat__ (<count>) <command> \\
 +__repeat__ <count> <command>
 +
 +======Description:======
 +This command repeatedly executes <command> <count> number of times.
 +If <count> is enclosed in parenthesis, it is evaluated as a mathematical
 +expression (ala ${...}), and if it is not, it is evaluated as regular text.
 +
 +======Examples:======
 +To very boldly display the time each hour:
 +      on ^timer "??:00*" {
 +         repeat 3 echo *** The time is $0!!
 +      }
  
repeat_command.txt · Last modified: 2006/08/29 16:08 by 127.0.0.1