1 .TH "FINDDUP" 1 "Mar 2010" "Francois Fleuret" "User Commands"
3 \" This man page was written by Francois Fleuret <francois@fleuret.org>
4 \" and is distributed under a Creative Commons Attribution-Share Alike
9 finddup \- Find files common to two directories (or not)
13 \fBfinddup\fP [OPTION]... DIR1 [[not:]DIR2]
17 With a single directory argument, \fBfinddup\fP prints the duplicated
18 files found in it. With two directories, it prints either the files
19 common to both DIR1 and DIR2, or with the `not:' prefix, the ones
20 present in DIR1 and not in DIR2.
22 It compares files by first comparing their sizes, hence goes
25 When looking for identical files, \fBfinddup\fP associates by default
26 a group ID to every content, and prints it along the file names.
39 ignore files and directories starting with a dot
45 do not show which files from DIR2 corresponds to files from DIR1
46 (hence, show only the files from DIR1 which have an identical twin in
50 do not show the file group IDs
53 show progress information in stderr
56 show the real path of the files
59 files with same inode are considered as different
63 None known, probably many. Valgrind does not complain though.
67 The format of the output should definitely be improved. Not clear how.
69 The comparison algorithm could definitely use some MD5 kind of
70 signature. However, I doubt it would improve speed much.
72 Their should be some fancy option to link two instances of the command
73 running on different machines to reduce network disk accesses.
77 .B finddup -cg blah something
80 List files found in \fB./blah/\fR which have a matching file with same
81 content in \fB./something/\fR. Do not display the group IDs.
84 .B finddup sources not:/mnt/backup
87 List all files found in \fB./sources/\fR which do not have
88 content-matching equivalent in \fB/mnt/backup\fR.
91 .B finddup tralala cuicui
94 List groups of files with same content which exist both in
95 \fB./tralala/\fR and \fB./cuicui/\fR.
99 Written by Francois Fleuret <francois@fleuret.org> and distributed
100 under the terms of the GNU General Public License version 3 as
101 published by the Free Software Foundation. This is free software: you
102 are free to change and redistribute it. There is NO WARRANTY, to the
103 extent permitted by law.