Skip to content

Instantly share code, notes, and snippets.

@kwdowicz
Created December 3, 2011 12:03
Show Gist options
  • Save kwdowicz/1426975 to your computer and use it in GitHub Desktop.
Save kwdowicz/1426975 to your computer and use it in GitHub Desktop.
batch html2haml inside ruby app
find . -name *erb | while read a; do echo "$a"; b=$(echo $a | sed 's/erb/haml/g'); echo $b; html2haml $a $b; rm -fr $a; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment