From: WATANABE Hirofumi Date: 2002-12-23T01:05:13+09:00 Subject: Re: Quickest way to get md5 of a file? "MikkelFJ" writes: > > ruby -r digest/md5 -e 'ARGV.each{|f|print f, " "; puts > Digest::MD5.hexdigest(File.read(f))}' * > > This doesn't work on Windows 2K, Ruby 1.6.7 or 1.7.3-7 > It says that 'f' is not a valid file. > File.read(f) doesn't work on 1.6.7 (use File.new(f).read but it does work on > 1.7.3-7) ruby -r digest/md5 -le "ARGV.each{|f| print f, ' ', Digest::MD5.hexdigest(open(f, 'rb').read)}" * -- eban