home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
354.lha
/
GarbageMan_V1.0
/
gman.doc
< prev
next >
Wrap
Text File
|
1990-03-04
|
3KB
|
64 lines
Garbage Man V1.0
Garbage Man (referred to as GMan) is a short utility designed
to make hard disk management easier by reducing clutter. What it does
is search for multiple copies of the same file on a disk, reporting any
duplicate files found and what sub-directories the duplicates are in.
The syntax of GMan is:
GMan <path> [SIZE] [CASE]
To search a disk (or partition, or logical assign, dir, etc.) called 'Work:',
you would issue the command 'GMan Work:' at a CLI/Shell prompt. GMan
will then search every sub-directory in 'Work:' and list any files that
appear in more than one directory.
By default, GMan is not case sensitive and ignores the size of the files
when looking for duplicates. This means that if there are two files
named 'DIR' and 'dir', GMan will consider them to be duplicates.
Likewise, if there are two files named 'list' (574 bytes) and 'list'
(9214) bytes, GMan will also consider them to be duplicates.
But wait- GMan has two optional parameters that let you change the way
it handles file duplicates. If you add the parameter 'CASE' to the
end of the 'GMan' command line, GMan will treat 'DIR' and 'dir' as
DIFFERENT. Likewise, if you add the paramter 'SIZE' to the end of the
'GMan' command line, GMan will consider the file 'list' (574 bytes) and
the file 'list' (9214 bytes) to be DIFFERENT. And yes Virginia, you can
use both 'CASE' and 'SIZE' together. Note also that only the first
letter of each option need be used ('S' or 'C', not case sensitive).
If you forget the syntax and lose this file, just type 'GMan' and a
brief summary will appear.
Note: GMan works by building a list of all unique file names in memory. If
you don't have enough free memory to build such a list, GMan will abort
and tell you so.
A future version of this program will optionally do a compare on the two
files in question and replace the second one with a hard link should they
prove to be identical. If you know what a hard link is you can probably
guess when this feature will be added.
This program is copyrighted and NOT in the public domain, but permission
is hereby granted for unlimited non-commercial distribution provided this
text file accompanies the program. Permission is also granted for
distribution on both BIX and PeopleLink as well as inclusion in the Fred
Fish library. Bug reports, questions, suggestions, and FREE STUFF (NO pirated
software please) can be sent to:
Erik C. Quackenbush
Lake Forest Logic Inc.
28101 Ballard Rd. Unit E
Lake Forest, IL 60045
(708)816-6666x
BBS: (708)680-0590 (SYSOP)
BIX: equack
PLink: equack
NET: equack@dcibix.das.net