Renaming files with rename command in a loop

Following command (a small shell script) changes file extensions of all files from .TXT to .txt in the working directory.
 
for file in `find . -type f -name "*.TXT"`; do rename .TXT .txt $file; done
 
The above works in bash.