Skip to content

Instantly share code, notes, and snippets.

@itamar
Forked from joshdvir/rename_rhtml.rb
Created February 22, 2012 08:33
Show Gist options
  • Select an option

  • Save itamar/1883436 to your computer and use it in GitHub Desktop.

Select an option

Save itamar/1883436 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