!
Abstract
Reissues an ODB command that has been logged via the history mechanism of ODB. If no argument appears after the exclamation point, the last logged command is reissued. If a numeric command index appears after the exclamation point, the specified command is reissued.
Syntax
! [<cmd_index>]
| Argument | Type | Description |
|---|---|---|
<cmd_index> |
integer | numeric index of the historical command-of-interest Command indices can be determined by using the ODB command history, which lists out the last twenty-five ODB commands that have been issued. Command indices start at zero, and increment by one. Invalid commands are not assigned command indices. |
Details
The ODB history mechanism consists of a "sliding" command list that can reach a maximum size of twenty-five commands. The argument-free version of ! is typically used to repetitively reissue the next command, as shown in the example. With the addition of the <cmd_index> argument, ! can be used to reissue old commands in new contexts, a feature typically useful for commonly reissued, long-format commands such as attrget and attrset.
Example
ODB> next
____________________________ (ODB 18.6.0: Event) ____________________________
* Time : 100.0 sec, [1m 40s]
* Event : execution ID (730), schedule ID (#728), type (self intrpt)
* Source : execution ID (722), top.pksw1.node_1.src [Objid=22] (processor)
* Data : code (1)
> Module : top.pksw1.node_1.src [Objid=22] (processor) [process id: 2]
ODB> !
____________________________ (ODB 18.6.0: Event) ____________________________
* Time : 100.0 sec, [1m 40s]
* Event : execution ID (731), schedule ID (#730), type (self intrpt)
* Source : execution ID (723), top.pksw1.node_2.src [Objid=33] (processor)
* Data : code (1)
> Module : top.pksw1.node_2.src [Objid=33] (processor) [process id: 4]
ODB> !
____________________________ (ODB 18.6.0: Event) ____________________________
* Time : 100.0 sec, [1m 40s]
* Event : execution ID (732), schedule ID (#732), type (self intrpt)
* Source : execution ID (724), top.pksw1.node_3.src [Objid=44] (processor)
* Data : code (1)
> Module : top.pksw1.node_3.src [Objid=44] (processor) [process id: 6]