Skip to content

Instantly share code, notes, and snippets.

@janpipek
Created November 8, 2014 08:21
Show Gist options
  • Save janpipek/165eb0c16bb4e11ce331 to your computer and use it in GitHub Desktop.
Save janpipek/165eb0c16bb4e11ce331 to your computer and use it in GitHub Desktop.
Turn all file names to small case
#!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