.SH "BUGS"
-Every pair of different files with same content are listed, which
-results in K^2 printed lines when K files are similar.
+The display is not sorted by groups.
+
+.SH "EXAMPLES"
+.nf
+.B finddup -c blah something
+
+.fi
+List files found in
+.B ./blah/
+which have a matching file with exact same content in
+.B ./something/
+
+.P
+.B finddup ./sources not:./backup
+
+.fi
+List all files found in
+.B ./sources/
+which do not have content-matching equivalent in
+.B ./backup.sources
+
+.P
+.B finddup -g ./tralala ./cuicui | sort -n
+
+.fi
+List groups of files with same content which exist both in
+.B ./tralala/
+and
+.B ./cuicui/
.SH "AUTHOR"
*
*/
-#define VERSION_NUMBER "0.5"
+#define VERSION_NUMBER "0.6"
#define _BSD_SOURCE
if(fd1 < 0) {
fprintf(stderr,
- "Can not open `%s' error: %s\n",
+ "Can not open \"%s\" error: %s\n",
f1->filename,
strerror(errno));
}
if(fd2 < 0) {
fprintf(stderr,
- "Can not open `%s' error: %s\n",
+ "Can not open \"%s\" error: %s\n",
f2->filename,
strerror(errno));
}
if(same_dir) {
list2 = list1;
} else {
- fprintf(stderr, " %s ... ", dirname2);
+ fprintf(stderr, "%s ... ", dirname2);
list2 = scan_directory(0, dirname2);
}
fprintf(stderr, "done.\n");