Hi, I want to delete .cr2 files that don’t have a .jpg file in another directory. The idea is:
-Search files in jpg directory
-Select files in .cr2 directory that dont have matching names
-Delete them while keeping the .cr2s that have a corresponding .jpg so I have raw files for the good photos
Is this possible in a single command or do I have to write a script to do this?

  • orsam@lemmy.zip
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 month ago

    Does one of the diff options in this discussion help to generate the list of files? I’m limited to a phone for a few days, but I can test them later.