Created
September 23, 2015 21:44
-
-
Save davidbalbert/2a5a2ef6eba9f7e5fa4b 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
| #!/usr/bin/env ruby | |
| if ARGV.size == 0 | |
| STDERR.puts "missing argument" | |
| exit 1 | |
| end | |
| ARGV.each do |name| | |
| s = File.read(name) | |
| s = s.gsub(",\n", ";\n").gsub("'", "").gsub(/([A-Z])/) do |ms| | |
| "-#{ms.downcase}" | |
| end | |
| File.open(name, "w") do |f| | |
| f.write(s) | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment