The DO command reexecutes a command from the command history stack. Refer to the LISTREDO and REDO commands in this chapter.
Task | 
  | 
Reexecutes a command from the command history stack.
Capability | 
  | 
No special capability required.
Syntax | 
  | 
Parameters | 
  | 
- cmdid
 Identifies a particular command in the command history stack. It can be one of the following:
A relative command number (executes the nth number in the stack, starting with the most recent).
An absolute number (executes number n in the stack).
A string (executes the most recent command starting with string).
Omitted (executes last command).
Optional.
Example | 
  | 
This example shows how to reexecute a command from the command history stack using the LISTREDO command.
List the commands in the command history stack using the LISTREDO command.
e excute command 30.
   discutil> LISTREDO
    24) LIST REDO
    25) LISTREDO
    26) REDO 24
    27) LIST REDO
    28) LISTREDO
    29) LIST REDO
    30) HELP
    31) HELP RECOVER
    32) HELP LISTREDO
    33) LISTREDO
   discutil> DO 30
 |