I have a large number of files of mixed format spread over eight directories on an external hard drive.
I know I can use fdupes to sort and remove duplicates on the drive.
Is there any way to command fdupes to search within only specified directories on the drive and omitting the others?
For example: Eight directories on drive - A, B, C, D, E, F, G, H.
I wish to search for duplicates within directories A, B, E, and F but exclude C, D, E and H.
Can anyone point me towards the correct syntax to enable this please?
fdupes CDEH --recurse: ABEF -nfmq
and see if it shows the desired result. If it does, then modify the command line to actually delete instead of list. – K7AAY Oct 22 '19 at 18:19