I'm looking for a quick way to rename a bunch of files and folders all to uppercase. Methods acceptable are DOS command line utilities, or something that will run from Cygwin. Ideally, scriptable, and will recurse subdirectories automatically. So far, the method I am using is really slow for the ~7500 files I need to do this to.
Code:
for i in `find * -depth`; do (mv $i `echo $i | sed 's%[^/][^/]*$%%'``echo $i | sed 's!.*/!!' | tr [:lower:] [:upper:]`); done

That is currently taking I think around 45 minutes to an hour to do what I need.

Thanks in advance