Created
June 2, 2012 19:25
-
-
Save mitfik/2859655 to your computer and use it in GitHub Desktop.
Rename extension for all files in all directories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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