#!/bin/bash
# modify directory and file
# rename new name
# by http://www.jb200.com
let i=1
max=$(find |
sed 's#[^/]##g' | sort -r | head -1 | wc -c)
while [ $i -lt $max ]
do find -mindepth $i -maxdepth $i -name '*[A-Z]*' | while read file; do mv $file `echo $file|tr 'A-Z' 'a-z'`; done
let i++
done