Skip to content

Instantly share code, notes, and snippets.

@epall
Created February 2, 2010 16:08
Show Gist options
  • Save epall/292771 to your computer and use it in GitHub Desktop.
Save epall/292771 to your computer and use it in GitHub Desktop.
require 'fileutils'
ARGV.each do |file|
clean_name = file.gsub('%20', ' ')
FileUtils.mv(file, clean_name) if clean_name != file
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment