Skip to content

Instantly share code, notes, and snippets.

@milothiesen
Created February 22, 2016 19:52
Show Gist options
  • Save milothiesen/52d724b719c54f253909 to your computer and use it in GitHub Desktop.
Save milothiesen/52d724b719c54f253909 to your computer and use it in GitHub Desktop.
#Place this file in the root of the directories you'd like to change.
#It will look for all directories with underscores and replace them with a space.
Dir["*"].each do|f|
if File.directory?(f)
File.rename f, f.gsub(/_/, ' ')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment