You are not logged in.
Hello everybody !
I have two folder which contains some directories, sub-directories and many many files !
I would like delete in Folder B and their subfolders the files that already exists in Folder A and their sub-folders but without delete duplicated files in Folder A.
I try with jdupes :
jdupes -O /master/folder/A/ /folder/to/clear/B -X size+:1M -X onlyext:JPG,AVI,PDF,MOV,RAF -r
The problem is that this command delete also the duplicates files in folder A that I don't want.
Is there a way with jdupes or an other program to do that ?
Thanks a lot by advance, have a nice day !
MaMaths.
ps : Sorry for my English, it's not my natural language.
Last edited by MaMaths (2024-11-07 16:37:38)
Offline
Hello,
I don’t know jdupes, but fdupes does that:
fdupes -rd /master/folder/A /folder/to/clear/B
In interactive mode you may then select all matches from B and delete them (fdupes’ interactive mode manual):
selb /folder/to/clear/B
ds
prune
Last edited by mpan (2024-11-06 19:18:57)
Sometimes I seem a bit harsh — don’t get offended too easily!
Offline
Hello mpan,
Thanks a lot it's exactly what's I'm looking for.
Have a nice day.
Offline