
# automatically changes files in the named directories
# from upper case to lower case 
for dir in "$@" ; do
        (
	if cd $dir;
        then
		for name in *[A-Z]* ; do 
		    mv "$name" "`echo \"$name\" | tr '[A-Z]' '[a-z]'`"
		done;
        else echo cd $dir failed;
        fi
	)
        
done
