jeudi 11 septembre 2014

Remove duplicate files in multiple folders


Vote count:

0




I have a directory which have many sub-directories, and sub-sub-directories and so on possibly. I would like to select a particular folder say A and delete all the files from directory other than A if such files occur in both A and directory other than A. Basically I would like to remove duplication (only with reference to A) by keeping the files in A intact. Furthermore, for all files that do not occur in A, I would like to keep only one copy in any one of the directories (possibly based on lexicographically first directory name or any other selection criteria).


Please help me write the script for the same.


Thanking you.



asked 39 secs ago







Remove duplicate files in multiple folders

Aucun commentaire:

Enregistrer un commentaire