"find . -print") and looks securely for identical files. When it finds two or more identical files, all but one are unlinked to reclaim the disk space and recreated as hard links to the remaining copy. WWW: http://sourceforge.net/projects/dupmerge
10 lines
331 B
C
10 lines
331 B
C
--- dupmerge.c.orig 2008-03-01 17:46:41.000000000 +0100
|
|
+++ dupmerge.c 2009-01-13 15:15:07.000000000 +0100
|
|
@@ -125,6 +125,7 @@
|
|
#include <sys/wait.h> // vfork
|
|
#include <time.h> // localtime
|
|
|
|
+#include <roken.h>
|
|
|
|
#define mc_MIN(a, b) ((a) < (b) ? (a) : (b))
|
|
#define mc_MAX(a, b) ((a) > (b) ? (a) : (b))
|