Skip to content

Instantly share code, notes, and snippets.

@mikepfirrmann
Created September 26, 2012 19:06
Show Gist options
  • Save mikepfirrmann/3789914 to your computer and use it in GitHub Desktop.
Save mikepfirrmann/3789914 to your computer and use it in GitHub Desktop.
Convert all CGM files in a directory to SVG files using Uniconvertor.
#!/usr/bin/env ruby
# Run this from a directory containing *.cgm files to create SVG copies.
Dir.glob('*.cgm').each do |file|
cmd = "uniconvertor '#{file}' '#{File.basename(file, '.cgm')}.svg'"
puts cmd
system cmd
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment