4.9 FC

Use FC to display edit a previously issued GGSCI 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).

Displaying Previous Commands

Issuing FC without arguments displays the most recent command. Options enable you to execute any previous command by specifying its line number or a text substring. Previous commands can be edited only if they were issued during the current GGSCI session, because history is not maintained from one session to another.

Editing Commands

The FC command displays the specified 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 in the displayed command where you want to begin editing, and then use one of the following arguments. Arguments are not case-sensitive and can be combined.

Table 4-3 FC Editor Commands

Argument Description
i text

Inserts text. For example:

GGSCI (SysA) 24> fc 9
GGSCI (SysA) 24> send mgr
GGSCI (SysA) 24..        i childstatus
GGSCI (SysA) 24> send mgr childstatus
r text

Replaces text. For example:

GGSCI (SysA) 25> fc 9
GGSCI (SysA) 25> info mgr
GGSCI (SysA) 25..     rextract extjd
GGSCI (SysA) 25> info extract extjd

Deletes a character. To delete multiple characters, enter a d for each one. For example:

GGSCI (SysA) 26> fc 10
GGSCI (SysA) 26> info extract extjd, detail
GGSCI (SysA) 26..                  dddddddd
GGSCI (SysA) 26> info extract extjd
replacement text

Replaces the displayed command with the text that you enter on a one-for-one basis. For example:

GGSCI (SysA) 26> fc 10
GGSCI (SysA) 26> info mgr
GGSCI (SysA) 26..     extract extjd
GGSCI (SysA) 26> info extract extjd

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.


FC [n | -n | string]

Displays the command from the specified line. Each GGSCI command line is sequenced, beginning with 1 at the start of the session.


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


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


Example 1   
FC 9
Example 2   
FC -3
Example 3   
FC sta