The "rdfind" command finds duplicate files, and optionally replaces one with a link to the other, or deletes the duplicate file.

These (untested) 2 command may work:

rdfind -deleteduplicates true dir1 dir2
mv -i dir1/* dir2

On 18/8/24 14:24, Andrew Greig via luv-main wrote:
Hi all,

Using grsync I backed up my data dir "data/RAW files" to an external to an external HDD directory

/RAWfiles/ so instead of appending the files I now have a 1.3Tb directory within my target directory.

Is there a command which can compare the two directories and come out with a single directory. Would it be easier if I renamed the nested directory RAWfilesb/ and moved it out of the original back up?

Many thanks

Andrew Greig

_______________________________________________
luv-main mailing list -- [email protected]
To unsubscribe send an email to [email protected]
_______________________________________________
luv-main mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to