Skip to content

Instantly share code, notes, and snippets.

@mkempe
Created May 5, 2011 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkempe/957264 to your computer and use it in GitHub Desktop.
Save mkempe/957264 to your computer and use it in GitHub Desktop.
Encoding Kung Fu
#!/usr/bin/env ruby
require 'find'
Find.find(Dir.getwd) do |file| # Get current working directory and iterate over each file
next if file.include?('.svn') # Ignore svn files
system "file -I '#{file}'" # Print file information via file command
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment