Last active
December 15, 2017 14:24
-
-
Save b-coimbra/6e693d7e04dc86ce07bdada347918a58 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dir['*'].each { |f| File.rename(f, f.gsub(/\-|\_/m, ' ')) if f != $0 } rescue Errno::ENOENT abort 'INVALID DIRECTORY' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'fileutils' | |
Dir['*'].each { |f| (puts "[-] #{f} "; FileUtils::rm_rf(f)) if File.zero?(f) } rescue Errno::ENOENT abort 'Run as Admin' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment