Is there any way of batch renaming files in sub directories?
For example:
Rename *.html to *.htm in a folder which has directories
*.html
*.htm
find . -regex ".*html$" | while read line; do A=`basename ${line} | sed 's/html$/htm/g'`; B=`dirname ${line}`; mv ${line} "${B}/${A}"; done