Skip to content

Instantly share code, notes, and snippets.

@dmshvetsov
Created August 23, 2013 06:49
Show Gist options
  • Save dmshvetsov/6316254 to your computer and use it in GitHub Desktop.
Save dmshvetsov/6316254 to your computer and use it in GitHub Desktop.
cat db/seeds/countries.json | ruby -rubygems -e 'require "json";a=JSON.pretty_generate JSON.parse gets;File.open("db/seeds/countries.json", "w"){|f| f << a}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment