[fa.info-vax] Deleting Directory Structures.

daemon@ucbvax.UUCP (08/21/83)

From GEOFF5@SRI-CSL  Sun Aug 21 01:49:41 1983

One way to delete entire directory trees is to use DIRECTORY to generate
a file containing a list of the files to be deleted,  SORT this file,  then
create a command procedure by prefixing each line in this file with
$ DELETE .  This is by no means a nice, clean method,  but is faster than
any alternative I can think of for large trees.

Example:

$ DIRECTORY/NOHEAD/NOTRAIL/OUTPUT=TEMP.TMP DBC0:[ADAIR...]*.*
$ SORT/KEY=(POS:1,SIZ:80) TEMP.TMP TEMP.TMP

( Use your favorite editor to create DELETE commands out of each line in
  TEMP.TMP. )

$ @TEMP.TMP
$ DELETE TEMP.TMP;*

Note:  You may want to give yourself DELETE access to the directory files
that are going to be deleted before running the procedure.

Taylor Adair
Leeds & Northrup Co.