Skip Navigation

How to delete files by names of files NOT in another directory

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?

Comments