TACL Reference Manual
UTILS:TACL Commands and Functions
HP NonStop TACL Reference Manual—429513-018
8-130
PURGE Command
•
If you specify a file-name template with wild-card characters and do not include
CONFIRM or NOCONFIRM, TACL confirms only the template (not individual file
names) before purging all files that match the template.
•
CONFIRM and NOCONFIRM are mutually exclusive.
Examples
If you have purge access to the files OCT and NOV (in your current default system,
volume, and subvolume) and to the file $RECORDS.DUE.PAST, you can purge all of
them by entering:
14> PURGE OCT, NOV, $RECORDS.DUE.PAST
$DATA.LNP.OCT Purged
$DATA.LNP.NOV Purged
$RECORDS.DUE.PAST Purged
15>
This command requests confirmation of the PURGE operation:
15> PURGE /CONFIRM/ abc
PURGE $VOL1.SV.ABC (Y/[N])?
If you respond with Y, TACL purges the file. Any other response is treated as N.
This command confirms the file-name template before purging matching files:
16> PURGE abc*
PURGE $VOL1.SV.ABC* (y/[n])?
This command confirms each file that matches a file-name template before purging
matching files:
17> PURGE /CONFIRM/ abc*
PURGE $VOL1.SV.ABC1 (y/[n])? y
$VOL1.SV.ABC2 Purged
PURGE $VOL1.SV.ABC2 (y/[n])? n
18>
This macro alters PURGE confirmation behavior so that TACL confirms purge
operations:
?SECTION purgec MACRO
PURGE /CONFIRM/ %*%
This macro alters PURGE confirmation behavior so that TACL does not confirm purge
operations:
?SECTION purgen MACRO
PURGE /NOCONFIRM/ %*%
To use either of the preceding macros, load the associated file and type PURGEC or
PURGEN, respectively.