The name of the INDEX must be specified. A new index will be created if it does not exist already. Note that the index is read into memory for each operation: collate operations on multiple files into one call if possible. No performance tests have been run, so there is no advice as to how large the index can realisticly be. It is currently used to index a collection of 10,000 files.
Commands are:
add
an item to the index remove
an item from the index find
matching items in the index-l
Each of the FILEs listed contains a list of files to process. -q
Screen display should be limited to essential information.13fe625700d47a6f9ab20a47de5a22ea dup.cpp
1ebe001b770e8b4d06439e0b4564a667 test_md5.cpp
$ ./dup index add *.cpp Unable to read the digest index, will create one Added dup.cpp Added test_md5.cpp
$ cp dup.cpp dup.dup
$ ./dup index find dup.dup Found duplicate: *dup.dup dup.cpp
$ ./dup index remove *.cpp Removed dup.cpp Removed test_md5.cpp