Skip to content

Instantly share code, notes, and snippets.

@orzFly
Created September 24, 2012 16:45
Show Gist options
  • Save orzFly/3776936 to your computer and use it in GitHub Desktop.
Save orzFly/3776936 to your computer and use it in GitHub Desktop.
Windowslize Filename
#!/usr/bin/env ruby
Dir['*'].each do |i| `mv "#{i}" "#{i.tr(":\\/<>|*?", "________")}"` end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment