summaryrefslogtreecommitdiff
path: root/dup
diff options
context:
space:
mode:
Diffstat (limited to 'dup')
-rwxr-xr-xdup23
1 files changed, 0 insertions, 23 deletions
diff --git a/dup b/dup
deleted file mode 100755
index 82e72bd..0000000
--- a/dup
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env ruby
-
-dir = ARGV[0]
-a = `find #{dir} -type f`.split "\n"
-
-h = {}
-a.each { |fn|
- md5 = `md5sum "#{fn}" | cut -d " " -f1`
- if h.has_key? md5
- h[md5] << fn
- else
- h[md5] = [fn]
- end
-}
-
-h.each { |k,v|
- if v.size > 1
- puts k
- v.each { |i| puts "\t#{i}" }
- puts
- end
-}
-