Skip to content

Instantly share code, notes, and snippets.

@luizfonseca
Created August 16, 2011 09:31
Show Gist options
  • Save luizfonseca/1148729 to your computer and use it in GitHub Desktop.
Save luizfonseca/1148729 to your computer and use it in GitHub Desktop.
Rename directory files from .erb to .haml (sample)
for file in *.erb; do mv $file `echo $file | sed 's/\(.*\.\)erb/\1haml/'`; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment