DSM/Tape Catalog Operator Interface (MEDIACOM) Manual

MEDIACOM Commands
DSM/Tape Catalog Operator Interface (MEDIACOM) Manual429828-010
2-181
! Command
"string"
is a text string enclosed in quotation marks. The ? command finds and displays the
most recent command in the history buffer that contains the specified text string.
The command need not begin with the specified string.
Examples
To retrieve command line number 6 from the history buffer:
MC> ? 6
MC> INFO TAPEDRIVE
To retrieve the last command in the history buffer:
MC> ?
MC> INFO VOLCAT
To retrieve the last command in the history buffer that contains the character string
STAR:
MC> ? "STAR"
MC> INFO FILECAT \STAR.*
To retrieve the last command in the history buffer that begins with the text string
ALT:
MC> ? ALT
MC> ALTER MEDIADEFS, RESET EXPIRATION
! Command
The ! command lets you retrieve and execute a command you previously entered
during the current session. You can request the command by line number, relative line
number, or text string.
!
entered with no line number or text string, specifies that the last command line in
the command history buffer is to be displayed and executed.
linenum
is a positive integer that specifies the number of the command line in the history
buffer that you want to retrieve and execute.
! [ linenum ]
[ -linenum ]
[ string ]
[ "string" ]