Computer Techs Fileserver Admins: How do you fix illegal filenames recursively? |
Fileserver Admins: How do you fix illegal filenames recursively? Posted: 03 Jul 2018 03:23 PM PDT Hi! I'm looking for a script or application that runs in Linux or OSX that can recursively trim trailing spaces from filenames and folders, as well as remove trailing periods, and remove characters deemed illegal by Windows, such as \ / and ? I manage an end-user facing file storage service, and when migrating data between file servers I often encounter large quantities of files that have these invalid names (usually caused by Mac OSX users). Windows errors out when trying to navigate through folders or read/copy/open files with invalid names, so I have to use Linux or OSX to fix them. The target server of the data migration doesn't like those illegal characters either, so I can't just migrate them using Linux and forget about it -- I really do have to rename them on the source server before they will copy over. When I have 10 or 20 files to fix, I just boot into a Linux Mint VM and rename them by hand. When there are 2000+, however... it's just not practical to do it manually. I found a rename command that looks like this, for removing trailing spaces: But it doesn't seem to recurse subdirectories and won't work on hidden files (sigh). Anybody got the industrial version of this? [link] [comments] |
Communicating through serial question Posted: 03 Jul 2018 02:52 PM PDT Is connecting to a device through a serial port (eg. Rs-232) another way to connect to a devices terminal interface? Or is this a completely different way of communication? [link] [comments] |
You are subscribed to email updates from Computer Techs: Where no BSOD gets left behind.... To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment