Use FC
to edit a previously issued Logdump command and then execute it again. Previous commands are stored in the memory buffer and can be displayed by issuing the HISTORY
command (see "HISTORY"). Issuing FC
without arguments executes the most recently used command. By using options, you can retrieve a specific command by specifying its line number or a text substring.
Using the Editor
The FC
command displays the command and then opens an editor with a prompt containing a blank line starting with two dots. To edit a command, use the space bar to position the cursor beneath the character where you want the change to begin, and then enter one of the following arguments. Arguments are not case-sensitive and can be combined.
Table 2-7 FC Command Options
Argument | Description |
---|---|
i text
|
Inserts text. For example: Logdump 24> fc 9 > count .. i detail count detail |
r text
|
Replaces text. For example: Logdump 25> fc 10 > timeoffset local .. rgmt timeoffset gmt |
d |
Deletes a character. To delete multiple characters, enter a d for each one. For example: Logdump 26> fc 11 > scanforrrbba .. dd scanforrba |
replacement_text
|
Replaces the displayed command with the text that you enter on a one-for-one basis. For example: Logdump 26> fc 10 > scanforrba 107 .. 127 scanforrba 127 |
To execute the command, press Enter
twice, once to exit the editor and once to issue the command. To cancel an edit, type a forward slash (/) twice.
Default
Execute the most recent command again
Syntax
FC [n | -n | string]