Skip to content

Instantly share code, notes, and snippets.

@joao
Last active December 14, 2019 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joao/34290d3d94102cd39747e6f367509ad1 to your computer and use it in GitHub Desktop.
Save joao/34290d3d94102cd39747e6f367509ad1 to your computer and use it in GitHub Desktop.
base2ocds_corrector.rb
open('base2ocds_corrected.json', 'a') do |f|
f << '['
File.readlines('./base2ocds.json').each_with_index do |line, index|
puts index + 1
f << line + ','
end
f << ']'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment