This is a small script to fix capitalization of an uploads directory after moving from a case insensitive file system to a case sensitive file system.
Run as
perl fixUploadsCase.pl /data/domains/www.example.com/public/uploads /data/domains/www.example2.com/public/upload