Safeguard User's Guide (G06.29+, H06.08+, J06.03+)
Working With SAFECOM
Safeguard User’s Guide — 422089-020
7 - 9
Displaying and Editing Previous Commands
Correcting Mistakes Using the FC Command
The FC command allows you to display and edit a command you entered previously in 
the current session. This feature is handy for correcting typographical errors or for 
executing several similar commands. 
FC supports the same search options as the ? and ! commands. Y
ou can request a 
command line by line number, relative line number, or text string. If you enter FC by 
itself, the last command line you entered is displayed. 
When you execute FC, the specified command line is displayed, and the cursor is 
positioned below that command on a command-editing line. Y
ou can then use the 
displayed command line as a guide for creating a new command. 
FC has four subcommands that you can use in the command-editing line. Enter these 
subcommands on the editing line to modify the characters directly above them in the 
redisplayed command line. FC supports these subcommands:
d
deletes the character directly above d.
istring
inserts string before the character directly above i.
rstring
replaces the characters in the command line with string. The first character 
replaced is the character directly above r.
string
replaces the characters in the command line directly above the string characters 
with string. This is an implicit replace subcommand. It works the same as the r 
subcommand.
// (2 backslashes)
ends the current string and allows you to enter another subcommand in the editing 
te
mplate.
The following example illustrates use of the FC command. In this example, the FC 
command retrieves the command at line number 18 and then displays the editing 
template on the next line. The d subcommand is then used to delete the characters 
PROG, and the i subcommand is used to insert the characters 03 so that the file name 
Note.  On the command-editing line, use only the spacebar and backspace key to move the 
cursor. Do not use the arrow keys.
Note.  FC recognizes any string in the editing template line 
that does not begin with d, i, or r as 
an implicit replacement string.










