Skip to content

Instantly share code, notes, and snippets.

@ebeigarts
Created May 13, 2011 17:04
Show Gist options
  • Save ebeigarts/970898 to your computer and use it in GitHub Desktop.
Save ebeigarts/970898 to your computer and use it in GitHub Desktop.
html2haml recursive
for f in `find . -regex '.*\.html\.erb'`; do echo "Converting $f" && html2haml $f > "${f%.erb}.haml" && rm $f; done
@samme
Copy link

samme commented Aug 22, 2013

What does the % in ${f%.erb} do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment