Skip to content

Instantly share code, notes, and snippets.

@LogicWolfe
Created December 24, 2009 01:54
Show Gist options
  • Save LogicWolfe/262956 to your computer and use it in GitHub Desktop.
Save LogicWolfe/262956 to your computer and use it in GitHub Desktop.
files = `ls`
files = files.split("\n")
files.each {|file|
next if (file == $0)
puts `mv #{file} #{file.gsub('.', '\ ')}`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment