Skip to content

Instantly share code, notes, and snippets.

@myjpa
Last active August 29, 2015 14:23
Show Gist options
  • Save myjpa/e8f41b21bb9dfe7d5f73 to your computer and use it in GitHub Desktop.
Save myjpa/e8f41b21bb9dfe7d5f73 to your computer and use it in GitHub Desktop.
ember migrations utils and pattern
# now can try this:
# https://github.com/abuiles/ember-watson
# this command replaces all '#each x in y' with '#each y as |x|' under current folder and subfolders
grep -R '#each' * -l | xargs -n1 perl -pi -w -e 's/#each ([\w.]+) in ([\w.]+)/#each $2 as |$1|/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment