Skip to content

Instantly share code, notes, and snippets.

@ainame
Created November 25, 2011 12:26
Show Gist options
  • Select an option

  • Save ainame/1393411 to your computer and use it in GitHub Desktop.

Select an option

Save ainame/1393411 to your computer and use it in GitHub Desktop.
`mkdir -p result`
Dir.glob("#{ARGV[0]}/*.kif") do |fn|
File.open(fn, "r") do |f|
File.open("result/#{File.basename(fn)}","w") do |o|
o.puts(f.read.gsub("\r\r\n","\r\n"))
end
end
end
`rm ARGV[0]/*`
`cp result/* #{ARGV[0]}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment