Created
January 17, 2017 19:14
-
-
Save kuatsure/dd9d184cd4c8d9336f68007925114c22 to your computer and use it in GitHub Desktop.
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
for f in app/models/*; | |
do | |
NAME=${f##*/} | |
echo mkdir "app/pods/${NAME%.*}"; | |
echo mv "$f" "app/pods/${NAME%.*}/model.js"; | |
done; |
you may or may not have to adjust your imports ( relative linking and all that )
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
remove echos when you're ready to commit to change