Recursive File Lowercasing: Moving Files from Windows to Linux

windowstolinux
I recently needed to recursively lowercase files and directories on a Linux server. The real task at hand was to move a bazillion files from a Windows server onto a Linux box. All the files were going to be placed on a webserver so the casing needed to be standardized. I looked all around to find a recursive script and found some, but through the task I found an easy way to do this.

I zipped up all the files on the Windows server. Then I used wget from the Linux to download the zip file. Here’s where the magic happened. I found a modifier on the unzip command:

unzip -LL MyZipFile.zip

The -LL parameter tells the command to rename all files and folders during the unzipping process.

DONE!

By the way, if you still really need that recursive lowercasing script, you can find it here: Lowercase files and directories | ubuntu for life .

No TweetBacks yet. (Be the first to Tweet this post)

Leave a Reply

You must be logged in to post a comment.