21.44. 檔名大寫換小寫,含子目錄?

Contributed by edwar

big5 中文及特殊字元應該也都沒問題。

find ./t -depth \
| perl -ne 'chomp;m</[^/]*$>;$d=$`;$_=$f=$&;'\
's/([\x80-\xFF].)|(\w)/$1\l$2/g;system "echo",$d.$f,$d.$_ if $f ne $_'