Skip to content

Instantly share code, notes, and snippets.

@mitfik
Created June 2, 2012 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mitfik/2859655 to your computer and use it in GitHub Desktop.
Save mitfik/2859655 to your computer and use it in GitHub Desktop.
Rename extension for all files in all directories
find -L . -type f -name "*.rhtml" | while read FNAME; do cp $FNAME `dirname $FNAME``echo '/'``basename $FNAME .rhtml`.html.erb; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment