Showing posts tagged rename

Subversion batch rename

To rename a series of files which are under SVN control, simply use this command at the Windows command prompt:

for %A in (*.rhtml) do svn rename %~nA.rhtml %~nA.html.erb

In this example, I changed the extension from .rhtml to .html.erb, to make things cleaner after I upgraded my Rails app to version 2.1.

Next step would be to scrape the whole app/views dir tree and do it all at once. Maybe some other time :-)