I'm looking to do something that I'm sure is pretty straightforward - hopefully with a Terminal command similar to this: How can I compare and delete duplicate files between multiple folders on El Capitan?.
I've been keeping photos in a number of directories, in one of two formats:
Most of these folders contain a subfolder called 'Best', where I have copied my favourite photos from the parent folder, thereby duplicating each photo.
N.B. Some of the smaller albums don't contain this 'Best' folder.
What I want to do is to scan recursively through each folder looking for a 'Best' folder. If it is found, then I want to go through each of the files within this folder and delete the corresponding item from the parent folder.
e.g. Parent folder contains:
and the 'Best' folder contains
Then I want to delete pic1 and pic3 from the parent folder and only keep pic2.
Thanks for any help.