Created
July 8, 2018 15:58
-
-
Save cbartlett/2ddb5b6aa5bdc9bc4f1432dfda750420 to your computer and use it in GitHub Desktop.
Convert Ruby hash syntax
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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