Skip to content

Instantly share code, notes, and snippets.

@plagi
Forked from makokal/erb_2_haml.sh
Created March 20, 2012 23:39
Show Gist options
  • Save plagi/2142554 to your computer and use it in GitHub Desktop.
Save plagi/2142554 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