• Breaking News

    [Android][timeline][#f39c12]

    Tuesday, July 3, 2018

    Computer Techs Fileserver Admins: How do you fix illegal filenames recursively?

    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:

    rename -n 's/ *$//' * 

    But it doesn't seem to recurse subdirectories and won't work on hidden files (sigh). Anybody got the industrial version of this?

    submitted by /u/JasonHenley
    [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?

    submitted by /u/Hummerbees
    [link] [comments]

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel