Skip to content

Instantly share code, notes, and snippets.

@cjweeg
Created December 19, 2011 19:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjweeg/1498575 to your computer and use it in GitHub Desktop.
Save cjweeg/1498575 to your computer and use it in GitHub Desktop.
ie = Dir.glob('/Users/scmac/Desktop/ChrisWeeg/ruby/identical/Enhanced/*')
ir = Dir.glob('/Users/scmac/Desktop/ChrisWeeg/ruby/identical/Raw/*')
junk = "abcdefghijklmnopqrstuvwxyzABCDEFGHILKLMNOPQRSTUVWXYZ"
ie.each {|x| x.delete! junk}
ir.each {|x| x.delete! junk}
ie.each {|x| x.delete! "/"}
ir.each {|x| x.delete! "/"}
#I recognize that this part is not really necessary ...
ie.each {|x| x << "tif"}
ir.each {|x| x << "tif"} #I couldn't figure out how to re-append the "ua" to the beginning of each string
ie.eql?(ir)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment