Skip to content

Instantly share code, notes, and snippets.

@rxqd
Created May 25, 2015 11:26
Show Gist options
  • Save rxqd/6d7f021122ea99d014d9 to your computer and use it in GitHub Desktop.
Save rxqd/6d7f021122ea99d014d9 to your computer and use it in GitHub Desktop.
Convert ruby 1.8 hashes to 1.9 format for all files
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