Created
November 9, 2011 16:50
-
-
Save ran488/1352049 to your computer and use it in GitHub Desktop.
md5 checksum in Ruby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby -w | |
require 'digest/md5' | |
ARGV.each do |f| | |
digest = Digest::MD5.file(f) | |
puts "#{f}: #{digest}" | |
end | |
__END__ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment