.RM 64 .NO NUMBER .NO PAGING .STHL 5,1,1 .nf 1 FINDALL ! A program to find all of a user's files ! .lm 1 .f This is an experimental program that finds all of the files on the disk that belong to the user. It does this by searching the index file on the disk and comparing the user's UIC with the file owner's UIC and listing all the files that match. This is a lengthy process on USER:, since it must check about 10000 files before finishing. .s To use this program, enter the command: .br .i 5 $ R KCL:FINDALL .br The program will respond by asking for the device name of the disk to search. If you just enter RETURN, your default disk will be used. The program will list each file by name and will optionally include the file id and size of each file. .lm 0 2 Options .lm 1 The following switches can be added following the device name: .br /SIZE -- This requests that the file sizes be printed for each filename. .br /FID -- This requests that the file-id be printed for each filename. .lm 0 2 Example .lm 1 The simplest use of the program is: .lm 5 .nf $ R KCL:FINDALL Device: -- your files listed here -- .i -4 To list both the file-id and sizes of the files on NIL:, $ R KCL:FINDALL Device: NIL:/FID/SIZE -- your files listed here -- .f .lm 0 2 Bugs .lm 1 Due to some problems in the RENAME command, this program will not always list the correct directory for a file. This seems to occur most often when a file has been 'lost' and then renamed to a directory. The file id is still valid, and PIP can be used to link to that file. .lm 0 2 Fileid .lm 1 The file id is a number that the system maintains for each file. The PIP program recognizes file numbers and can place a file into a directory by the command: .br .i 5 $ MCR PIP file.dat/EN=/FI:nnnn:mmmm .br where file.dat is the name of the file, and the numbers nnnn and mmmm are taken to be the first two numbers of the file id listed by FINDALL. Following this, the file can be used normally. It is not suggested that you place a file into more than one directory. .lm 0 2 Author .lm 1 This program was written by Mark Johnson (username SYSMGR) and any questions or problems with FINDALL should be addressed to him.