I have a number of websites that were previously on a Windows IIS environment. We migrated them over to Linux and of course all of the links to media files are now broken because Linux is case sensitive and Windows isn't (most of the files are PDFs uploaded by end-users, so the naming conventions are all over the place).
Is there any sort of shortcut to fixing these links? Any plugins out there that search for media links and correct the case? Doing this manually on 20 websites is going to be a nightmare so any suggestions are appreciated, even if it involves regex or MySQL voodoo.