The equal-files package

[Tags: gpl, program]

Shell command that finds files with equal content in a given set of files. This is useful for finding duplicates in a set of documents where the same document might have been stored by accident with different names. Use it like

 equal-files `find my_dir -type f`

or

 find my_dir -type f | xargs equal-files

If the file names contain spaces, better use

 find my_dir -type f -printf "'%p'\n" | xargs equal-files

The program reads all input files simultaneously, driven by sorting and grouping of their content. However be prepared that due to the simultaneous access you may exceed the admissible number of opened files.

The program can be used as a nice example of a declarative yet efficient implementation of a non-trivial algorithm, that is enabled by lazy evaluation.


Properties

Versions0.0.1, 0.0.2, 0.0.2.1, 0.0.3, 0.0.4
Dependenciesbase (>=1.0 && <2) or
base (>=3)
LicenseGPL
AuthorHenning Thielemann <haskell@henning-thielemann.de>
MaintainerHenning Thielemann <haskell@henning-thielemann.de>
CategoryConsole
Home pagehttp://code.haskell.org/~thielema/equal-files
Executablesequal-files
Upload dateTue Dec 16 23:54:55 UTC 2008
Uploaded byHenningThielemann
Downloads438 total (44 in last 30 days)

Flags

NameDescriptionDefault
splitbaseChoose the new smaller, split-up base package.Enabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainers' corner

For package maintainers and hackage trustees