Created
September 26, 2012 19:06
-
-
Save mikepfirrmann/3789914 to your computer and use it in GitHub Desktop.
Convert all CGM files in a directory to SVG files using Uniconvertor.
This file contains 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
#!/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