Short of writing a loop, is there a way to repeat the last command N times.
For example, I can repeat the last command once by using a double bang (!!), but how do I repeat it say 30 times?
Short of writing a loop, is there a way to repeat the last command N times. For example, I can repeat the last command once by using a double bang (!!), but how do I repeat it say 30 times? |
||||
|
With
To repeat the previous command line even if it contained several commands, use:
Or:
With
(and use
Another approach to emulate
(assuming an unmodified And then use:
|
||||
|
The shortest I can come up with is:
|
|||||||||
|
One approach could be to use the line editor to insert Like with !!;Escdd30p The Define the kbd macro as Ctrl+X(!!;Ctrl+X) Which you can later invoke 30 times as: Alt+3Alt+0Ctrl+Xe |
||||
|
This is a bit ugly, but:
The leading space is not strictly necessary, but is useful to suppress entering the Alternatively:
And:
|
|||||
|
The
or
|
|||
|