home *** CD-ROM | disk | FTP | other *** search
- Ever wish the find program could stop at disk boundaries or perhaps exclude
- certain directories? Or maybe you just wish it would sort the file names
- for you.
-
- When I need to shuffle stuff off one disk onto another, I like to see what
- is on the disk first. Find doesn't really let you do that, so I wrote
- "disklist". It's not as full-featured as find (yet), but it does know where
- disk boundaries are, and it sorts the file names for me. Also, it doesn't
- expand subdirectories until it lists the entire top directory first.
-
-
- BUGS:
-
- Disklist does assume SysV directory types. That is, "struct direct"
- exists, a directory is readable, and everything you need to know about
- file names in the directory is in there. Thus, it probably won't work
- on an RS-6000, for instance.
-
- It does work just fine on my NCR Tower 32/850 running SysVR3. It did work
- under SysVR2, but you may need to change the section that reads /etc/fstab
- to get it to run on your machine. (That's how it knows where disk boundaries
- are.)
-
- I commented-out the code that forces full path names. However, if you do
- not specify the full path name of the directory you are dumping, disklist
- won't know to where to stop if any disks are mounted below the disk being
- listed. That's life. (Someone with time on their hands could always
- fix this, but I didn't think it was worth bothering with.)
-
-
- If you should make changes (other than those associated with reading your
- fstab, mntnodes, or whatever file), please drop me a line. Thanks.
-
- Joe Larson
- joel@crystal.mn.org
- 612-542-1683
-