Skip to content

Instantly share code, notes, and snippets.

@joshdvir
Created June 20, 2011 11:02
Show Gist options
  • Save joshdvir/1035442 to your computer and use it in GitHub Desktop.
Save joshdvir/1035442 to your computer and use it in GitHub Desktop.
bulk renaming rhtml files and doing a git mv
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