On Tue, 15 Jul 2003 20:35:15 -0500
Chris <[EMAIL PROTECTED]> wrote:

> At one time a long ways back someone posted, I think it was a small
> script file to change the case of file extensions, ie..MP3 to .mp3. 
> Does anyone have that laying around?  I've been googling and found a
> few, but none seem to work correctly.
> 
> Thanks
> Chris

Do you have a lot of different extensions you want to change? This can
give you an idea, changing *only* the extension to lowercase. Works with
files with spaces in the name, too. Test it first, then uncomment the mv
line.

#/bin/bash
for i in *.MP3
do
        name=`echo $i |sed s/'.MP3'//`
        ext=".mp3"
        echo "$i : $name$ext"
#       mv "$i" "$name$ext"
done


Todd


-- 
Reclaim the flag: http://www.pbs.org/now/commentary/moyers19.html

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to