• 0 Posts
  • 3 Comments
Joined 1 month ago
cake
Cake day: October 3rd, 2024

help-circle


  • See if the command line utility “detox” removes it. I use it in a bash file that tidies everything up for me before I do my daily backup.

    Go to the directory you want to clean up and type:

    detox *

    If you don’t want to clean up everything, you can limit it. For example, if I only want to clean up PDF files, I’d do:

    detox *.pdf

    Detox replaces all the ugly characters with underscores. I personally hate underscores for most everything and use dashes instead. So after detox runs I also run:

    rename ‘y/_/-/’ *

    Then, because I want every file named only with lowercase letters, I also run:

    rename ‘y/A-Z/a-z/’ *

    (edit to remove duplicate info)