NAME

dedup - remove duplicate files


SYNOPSIS

dedup [--batch] [--debug] [--link] [--no|-n] [--stdin] [--stdin0] [--verbose|-v] file file...


DESCRIPTION

dedup scans all the given file arguments and removes any duplicates. Files of 0 length are silently skipped. When choosing which file to retain older files are preferred over newer ones, and files given earlier on the command line are preferred over those given later.


OPTIONS

--batch

Don't complain if fewer than 2 files are given or if fewer than 2 remain after screening out non-files and the like.

--debug

Turn debugging on.

--link

Rather than removing duplicates, (hard) link them together so they share storage.

--help

Show the usage message and die.

--no, -n

Print what would have been done, but don't actually do anything.

--stdin

Read stdin for a list of files and add these to those given on the command line.

--stdin0

Same, but the files on stdin are separated by null characters rather than newlines.

--verbose, -v

Be more verbose. A single --verbose causes dedup to display which files are being removed. Adding another causes it to additionally output the names of files which are the same length but which differ.

--version

Show the version number and exit.


BUGS

dedup doesn't try to deal with files which have multiple links, it just ignores them. It doesn't even allow symlinks.


AVAILABILITY

The code is licensed under the GNU GPL. Check http://www.argon.org/~roderick/ for updated versions.


AUTHOR

Roderick Schertler <roderick@argon.org>