News for hackers. Stuff that matters.
Re:I'm “still afraid to use spaces in file names” years old by BiteCode_dev on Thursday November 11, 2021 @04:59PM (#29193741)
Thanks to all the comments in this threads, I now have "sudo apt install rename detox" in my install script, and:

    normalize_names() {
        rename "s/-/_/g" *
        detox -s lower *
    }
in my .bashrc.

I've thrown some edge cases at it, and it handles it super well. It deals with consecutive "_", remove leading garbage, normalize unicode, and even prevents naming conflicts by opting out early.

Thanks you.

There are no comments on this comment yet.