Created
June 20, 2011 11:02
-
-
Save joshdvir/1035442 to your computer and use it in GitHub Desktop.
bulk renaming rhtml files and doing a git mv
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
Dir.glob('app/views/**/*.rhtml').each do |file| | |
puts `git mv #{file} #{file.gsub(/\.rhtml$/, '.erb')}` | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment