Skip to content

Instantly share code, notes, and snippets.

@shuhei
Created July 5, 2013 06:18
Show Gist options
  • Save shuhei/5932345 to your computer and use it in GitHub Desktop.
Save shuhei/5932345 to your computer and use it in GitHub Desktop.
Replace Ruby 1.8 style hashes with 1.9 style on Mac.
find . \( -name '*.haml' -o -name '*.rb' \) -exec sed -i '' "s/ :\([^ ']*\) => / \1: /g" {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment