Skip to content

Instantly share code, notes, and snippets.

@patmaddox
Created September 7, 2015 15:53
Show Gist options
  • Select an option

  • Save patmaddox/b33a5d914f659c1a170b to your computer and use it in GitHub Desktop.

Select an option

Save patmaddox/b33a5d914f659c1a170b to your computer and use it in GitHub Desktop.
convert ruby 1.8 hashes to 1.9 (via @askl56)
find . -name \*.rb -exec perl -p -i -e 's/([^:]):(\w+)\s*=>/\1\2:/g' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment