Re: Script to rename all filenames in a directory to use ALL…

Top Page
Attachments:
Message as email
+ (text/plain)
+ uppercasefile.rb (application/x-ruby)
+ (text/plain)
Delete this message
Reply to this message
Author: Andrew \"Tuna\" Harris
Date:  
To: \"plu>\"@lists.plug.phoenix.az.us>Main PLUG discussion list
Subject: Re: Script to rename all filenames in a directory to use ALL CAPITAL LETTERS
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. :)
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss