Created
February 12, 2012 18:51
-
-
Save robdimarco/1810220 to your computer and use it in GitHub Desktop.
Bash one-liner to move all ERB files to HAML using html haml
This file contains 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 `find . -name '*.erb'`; do | |
new_f=`dirname $f`/`basename $f | sed s/erb/haml/`; | |
html2haml $f > $new_f; | |
git rm $f; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment