How do you repeat a command in Unix?
Answer
There’s a built-in Unix command repeat whose first argument is the number of times to repeat a command, where the command (with any arguments) is specified by the
remaining arguments to repeat . For example, % repeat 100 echo “I will not automate this punishment.” will echo the given string 100 times and then stop.
Answer
There’s a built-in Unix command repeat whose first argument is the number of times to repeat a command, where the command (with any arguments) is specified by the
remaining arguments to repeat . For example, % repeat 100 echo “I will not automate this punishment.” will echo the given string 100 times and then stop.