After a photo shoot I have two folders: JPGs (files *.jpg) and RAWs (files *.CR2). Usually I take a look in the JPGs folder and delete those ones that I don't like.
What I want is to create a bash script to check:
for file.cr2 in folder.getFiles
if file.jpg is NOT in folder2.getfiles
delete file.cr2
I have seen some examples with rsync but with files with the same extension and I'm not very good at bash, so I can do it in C but I want to learn.