Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site ucbvax.UUCP Path: utzoo!linus!decvax!tektronix!ucbcad!ucbvax!daemon From: daemon@ucbvax.UUCP Newsgroups: fa.info-vax Subject: Deleting Directory Structures. Message-ID: <505@ucbvax.UUCP> Date: Sun, 21-Aug-83 04:50:42 EDT Article-I.D.: ucbvax.505 Posted: Sun Aug 21 04:50:42 1983 Date-Received: Sun, 21-Aug-83 15:47:25 EDT Sender: daemon@ucbvax.UUCP Organization: U. C. Berkeley Computer Science Lines: 24 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.