Posted by & filed under file extension, find, hard drive, rename, ubuntu, windows.

Ubuntu is awesome. You can rename files to include tons of special characters, like $!*? and so on. Unfortunately, Windows is not quite as awesome. If you have a linux-formatted file system that has files with these great characters, and you want to mount it in Windows, be aware: you will not be able to access, move, delete, or rename these files. This can be quite annoying. I found a solution on a blog called Are You Secure. I slightly modified the code there to allow the “&” character, which is available in Windows.

Open a terminal, and cd to the root of the drive where you want to rename files.

copy and paste the following, and press enter:

find . -iname “*” -exec rename -v ‘s/\:|\*|\%|\?|\\|\^|\=|\”//g’ “{}” \;