Skip to content

Instantly share code, notes, and snippets.

@erubboli
Created November 15, 2010 18:46
Show Gist options
  • Save erubboli/700761 to your computer and use it in GitHub Desktop.
Save erubboli/700761 to your computer and use it in GitHub Desktop.
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
@erubboli
Copy link
Author

find -name "*pdf" -exec ruby ../conv.rb {} ;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment