rawhtml123#
You can repeat a command in VISTA without typing it over by using the
character. The character comes before the command you want to repeat.
It is also possible to modify a command while you repeat it.
The command comes in several forms:
- <#421#>Typing '' by itself repeats the last command that you executed. <#421#>
- <#422#>Typing '118
of the command can be found by the HISTORY command.<#422#>
- <#423#>Typing 'string' repeats the last command beginning with 'string'.<#423#>
As an example, suppose the HISTORY command gives the output:
verbatim124#
Then
#example427#
Note the last example: The history mechanism will repeat the last command
which begins with 'M'. If there are several commands which begin with the
same letter, you have to supply enough of the command name after the to
uniquely specify the command to be repeated.
It is possible to modify a previous command using the construction
before executing the command again. There are several ways in which this
modification can be done:
- <#434#>You can ADD words to the command by typing them after you enter
'command', provided that these words are not keyword values
(EXPRESSION=VALUE) which are already present in the previous
command.<#434#>
- <#435#>You can modify keyword values which already exist in the previous
command by simply repeating the keyword with a new value. For
instance, if the old command was ;SPMquot;PLOT 1 R=200 XS=200 XE=300
MIN=400;SPMquot;, and you re-ran the command with ;SPMquot;PLOT R=234;SPMquot;, the new
command would be ;SPMquot;PLOT 1 R=234 XS=200 XE=300 MIN=400;SPMquot;<#435#>
- <#436#>You can force a keyword value to be added to or deleted from the
previous command (and not substituted as described above) by
preceding the keyword with a plus (+) or minus (-) sign.<#436#>
As an examples of command modification with , assume you wanted to repeat
in various ways the command
#hanging438#
which, we will assume is number 10 in the history list.
#example441#
Now suppose that command number 58 was
#hanging447#
Then
#example450#
Note: When using the '-' sign to delete words, you must supply an exact
match to the word being deleted.