Skip to content

Instantly share code, notes, and snippets.

@ackintosh
Created June 22, 2013 06:47
Show Gist options
  • Save ackintosh/5836127 to your computer and use it in GitHub Desktop.
Save ackintosh/5836127 to your computer and use it in GitHub Desktop.
sample code to get md5 checksum.
require 'digest/md5'
require 'find'
Find.find(File.dirname($0)) do |path|
next if File.directory?(path)
puts Digest::MD5.hexdigest(File.read(path)) + ' ' + path
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment