Created
May 13, 2011 17:04
-
-
Save ebeigarts/970898 to your computer and use it in GitHub Desktop.
html2haml recursive
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 . -regex '.*\.html\.erb'`; do echo "Converting $f" && html2haml $f > "${f%.erb}.haml" && rm $f; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What does the
%
in${f%.erb}
do?