Created
November 8, 2014 08:21
-
-
Save janpipek/165eb0c16bb4e11ce331 to your computer and use it in GitHub Desktop.
Turn all file names to small case
This file contains 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
#!ruby | |
# Simple script to change all the file names in current directory to small case | |
require 'fileutils' | |
Dir.foreach(".") do |fn| | |
n = fn.downcase | |
if n != fn | |
FileUtils.mv(fn, n) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment