Skip to content

Instantly share code, notes, and snippets.

@basicxman
Created August 16, 2010 18:10
Show Gist options
  • Save basicxman/527441 to your computer and use it in GitHub Desktop.
Save basicxman/527441 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'find'
require 'yaml'
formats = [ '.jpg' ]
current_iteration = 0
print "Searching"
Find.find("/") do |file|
current_iteration += 1
print "." if current_iteration % 5 == 0
if formats.include? File.extname(file).downcase
# go go
end
end
puts "\nDone."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment