TACL Reference Manual
UTILS:TACL Commands and Functions
HP NonStop TACL Reference Manual—429513-018
8-63
FC Command
FC Command
 Use the FC command to retrieve, edit, and reexecute lines in the history buffer.
num
is a positive integer that refers to the specific command-line number you want to 
retrieve from the history buffer.
- num
is a negative number that refers to a command line in the history buffer relative to 
the current command line.
text
is the most recent command line in the history buffer that begins with the text you 
specify. This text need only be as many characters as necessary to identify the 
command line.
Consideration
When you enter the FC command, the specified command line is redisplayed (if you do 
not specify a line, the most recent command line is redisplayed). A double period 
prompt (..) appears below it.
Examples
Suppose that you are renaming the file JUNK to TESTFILE, and make a typing error in 
the RENAME command on line 9. Rather than retype the whole line, type FC 9 to fix 
the invalid command:
12> FC 9
12> RENMAE JUNK, TESTFILE
12..
You now see your invalid command redisplayed on the screen. The blank line at the 
double period prompt is an editing template. In this template, you enter subcommands 
that make corrections or additions to the command displayed above the template. The 
rules for entering subcommands and for making corrections and additions are 
described for the Editing Template on page 8-64.
After you enter the subcommands you want, press the RETURN key. Your edited 
command and a new editing template then appear. If you want to make more 
corrections to the edited command, you can enter more subcommands in the editing 
template and then press RETURN. If the edited command is correct, you can 
reexecute it by pressing RETURN without entering any subcommands.
FC [ num | -num | text ]










