2.22 FC

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]
n

Returns the specified command line. Each Logdump command line is sequenced, beginning with 1 at the start of the session.

-n

Returns the command that was issued n lines before the current line.

string

Returns the last command that starts with the specified text string.

Examples

Example 1   
FC 9
Example 2   
FC -3
Example 3   
FC sca