Script to rename all filenames in a directory to use ALL CAPITAL LETTERS

Andrew "Tuna" Harris tuna at supertunaman.com
Tue Apr 7 13:46:00 MST 2009


Excerpts from waydavis's message of Tue Apr 07 13:15:35 -0700 2009:
> Its probably simple, but would take me a week....
> 
> Ie:
> Make:   2009-4_5_WaDAq_a.Dn.23.f
> INTO:   2009-4_5_WADAQ_ADN.23.F
>

I've done something very similar once, but it makes them all lowercase.
I wrote it in Ruby for a friend. I've attached it to this message. Just
run it in the target directory. So...

cd /home/tuna/frightened_horse_sounds/
ruby uppercasefile.rb

It'll go through ever file there and make it lowercase. Make sure that
you don't have any existing files called lol.txt there. :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uppercasefile.rb
Type: application/x-ruby
Size: 285 bytes
Desc: not available
Url : http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20090407/03e0ed99/attachment.bin 


More information about the PLUG-discuss mailing list