Skip to content

Instantly share code, notes, and snippets.

@makokal
Created March 15, 2012 02:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save makokal/2041195 to your computer and use it in GitHub Desktop.
Save makokal/2041195 to your computer and use it in GitHub Desktop.
script to convert erb to HAML for a whole project
#!/bin/bash
for i in `find . -name '*.erb'` ; do
html2haml $i `echo $i | sed 's/\.erb/\.haml/'`
done
find . -name '*.erb' -exec rm \{\} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment