Created
November 15, 2010 18:46
-
-
Save erubboli/700761 to your computer and use it in GitHub Desktop.
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
res = `file "#{ARGV[0]}"` | |
#puts "#{ARGV[0]} -> #{res}" | |
if res.match /Microsoft/ | |
fn = ARGV[0].split('.') | |
fn[fn.size-1] = 'lit' | |
puts "mv \"#{ARGV[0]}\" \"#{fn.join('.')}\"" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
find -name "*pdf" -exec ruby ../conv.rb {} ;