DFIND Page 1 26-Oct-86 NAME Dfind - search through RT-11 filesystem. SYNOPSIS dfind [ -adptv ][ -f filename ][ [ device ][ file-pattern ] ...] DESCRIPTION Dfind is a utility for searching through an RT-11 structured file system and the subdevices on it. Upon a successful match, the filename, size, and date are printed, as well as the file path (sequence of subdevices) leading up to it. Dfind looks for "file-pattern" on "device". For each device/filename argument, the default filepattern is "*"; and the default device is DK:, unless the -f flag is used. With the -f flag, the default device is filename. -f filename is described above. -t causes TSX file times to be printed. -d allows only empty or deleted files to be matched. -p allows only protected permanent files to be matched. -a allows all files (except tentative) to be matched. -v causes statistics (files, blocks, free blocks) to be printed out after each pattern matched. EXAMPLES r dfind dfind: * ! all files on DK: or subdevices of DK: r dfind dfind: -f sy:c.dsk *.sav ! all .SAV files on subdevice ! C.DSK on SY: r dfind dfind: -t du1:*.doc ! all .DOC files on DU1: or ! subdevices of DU1: ! show creation times too DFIND Page 2 26-Oct-86 AUTHOR Written in April, 1982, by Kris A. Kugel at Lachman Associates, Inc. 645 Blackhawk Dr., Westmont, IL. 60559 Modified and improved by Robert Lawhead and Carl Lowenstein, Marine Physical Lab., U.C. San Diego P-004, La Jolla, CA 92093. BUGS Dfind suffers from the inability of RT-11's .CSISPC to open a device in a non-file-structured mode. A modified version of the file-open routine IOFOPA is supplied to overcome this. ADDITIONAL COMMENTS Dfind was developed for use under TSX+ with the Omnex subdevice handler. It runs under RT-11 V5 with the normal RT-11 LD handler, and under TSX+ with the TSX LD handler. While the program was originally written for Whitesmith's C compiler, it has now been ported entirely to DECUS C. It is highly likely that the conditional compilation for Whitesmith will no longer produce a working program.