View Single Post
05-29-2009, 12:51 PM   #4
SOldBear
Site Supporter
 
Location: Alameda, CA
Gallery Photos: 0
Posts: 925
Can you try this little script. It is kind of mundane but illustrates the renaming to lower case:

-----------------------------------------------------------------------
#!/bin/csh -f

foreach file (*JPG)
set first = `echo ${file} | cut -d "." -f 1`
set second = `echo ${file} | cut -d "." -f 2`
set firstlower = `echo ${first} | tr "A-Z" "a-z"`
set secondlower = `echo ${second} | tr "A-Z" "a-z"`
echo "** Rename ${first}.${second} to ${firstlower}.${secondlower}"
mv ${first}.${second} ${firstlower}.${secondlower}
end

exit
-----------------------------------------------------------------------
SOldBear is offline