diff options
author | Patrick Simianer <p@simianer.de> | 2016-04-14 17:30:30 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2016-04-14 17:30:30 +0200 |
commit | 3c1b8d5c8947bf0aa3e929c21f59eaf06aba33af (patch) | |
tree | 71111c40dd00a4739c53413f5926a26bbe901ead /dup | |
parent | 2c01777eb98ac7649d24e1a60a94393892b7e7af (diff) |
more general monitor_soft_raid
Diffstat (limited to 'dup')
-rwxr-xr-x | dup | 23 |
1 files changed, 0 insertions, 23 deletions
@@ -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 -} - |