OGG: One useful GGSCI command is `FC`

Beside a useful GGSCI `!` command that enables you to reexecute last previous commands there’s `FC` command. With it you can edit last executed command or any previous command (by it’s number or by it’s beginning).
To invoke by number type fc and a number of previous command (each command executed in GGSCI has it’s number in history)

GGSCI> fc 24

To invoke by starting chars of previous command

GGSCI> fc inf

After hitting `FC` you enter an interactive mode where you have several options (refer to Oracle documentation). In overall `fc` resembles sqlplus’ `ed` command.

Leave a Reply

Your email address will not be published. Required fields are marked *