9.25 The C Shell repeat CommandThe C shell has a built-in command that lets you execute a command repeatedly: % All you do is specify the number of repetitions, followed by the command you want to re-execute. A trivial example would be: % Simple, right? Just imagine what Jack Nicholson could have done in the movie The Shining if he had traded in his typewriter for a UNIX system: % Ok, this is fun at first, but you may soon wonder whether this command has any down-to-earth uses. It does, and I'll conclude with some more useful examples:
Some versions of the C shell repeat command have a quoting bug. See the end of article 47.2 . - |
|