Renaming files, Deleting files, Purging files using individual file names – HP NonStop G-Series User Manual
Page 58

Managing Files With TACL
Guardian User’s Guide — 425266-001
3 -8
Renaming Files
Renaming Files
If you have read and purge access to a file on a disk volume (see
on page 3-13), you can specify a new file name, a new subvolume name, or
both.
Simply enter RENAME followed by the old file name, a comma, and the new file name.
To rename a file by specifying both a new subvolume name and a new file name:
This RENAME command renamed or “moved” the file BELL from the current
subvolume to the ALICE subvolume.
You cannot rename a file to another disk volume; the RENAME command does not
move files from one disk to another (use the FUP DUP command to place a copy of a
file on another volume or subvolume).
You can also rename files with the File Utility Program (FUP). See
Deleting Files
If you have purge access to a file on a disk volume (see
on page 3-13), and the file is not currently open, you can delete it from the
system.
Simply enter PURGE followed by the name of the file to be deleted.
The PURGE command has CONFIRM and NOCONFIRM options that let you specify
whether you want the TACL program to confirm your purge request before deleting a
file. If you do not enter either option, TACL does not display a confirm prompt.
To verify that files have been purged, enter a FILES command.
Purging Files Using Individual File Names
To delete the file named SECT12 from the subvolume BOOKA on volume $GERT:
To show how to delete SECT12 using the CONFIRM option:
15> RENAME BELL, ALICE.DOORBELL
16> PURGE $GERT.BOOKA.SECT12
$GERT.BOOKA.SECT12 Purged
16> PURGE /CONFIRM/ $GERT.BOOKA.SECT12
PURGE $GERT.BOOKA.SECT12 (y/[n])? Y
$GERT.BOOKA.SECT12 Purged