Search files with same name and different content

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Peter
Power Member
Power Member
Posts: 2068
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Search files with same name and different content

Post by *Peter »

For example, I have three files with same name

Code: Select all

Path and                                   content

x:\1\x.txt                                 hello
x:\2\x.txt                                 hello
x:\3\x.txt                                 abcde
If I search for duplicates with ...
same name, then I get 1,2,3
same name and size 1,2,3
same name and size and content 1,2

But how to search for...
same name and size different content?

This could be
a) the inverse "search result" (1,2 is found -> 3 is the inverse result) or
b) groups of non-identic-pairs: 1,3 and 2,3

Any ideas how to get it?

Best regards

Peter
TC 10.xx / #266191
Win 10 x64
User avatar
nsp
Power Member
Power Member
Posts: 1954
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Search files with same name and different content

Post by *nsp »

Peter wrote:For example, I have three files with same name

Code: Select all

Path and                                   content

x:\1\x.txt                                 hello
x:\2\x.txt                                 hello
x:\3\x.txt                                 abcde
If I search for duplicates with ...
same name, then I get 1,2,3
same name and size 1,2,3
same name and size and content 1,2

But how to search for...
same name and size different content?

This could be
a) the inverse "search result" (1,2 is found -> 3 is the inverse result) or
b) groups of non-identic-pairs: 1,3 and 2,3

Any ideas how to get it?

Best regards

Peter
What do you whant to get for

Code: Select all

Path and                                   content

w:\3\x.txt                                 abcde
x:\1\x.txt                                 hello
x:\2\x.txt                                 hello
x:\3\x.txt                                 abcde
User avatar
Peter
Power Member
Power Member
Posts: 2068
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Re: Search files with same name and different content

Post by *Peter »

nsp wrote:What do you whant to get for ....
Hmmh - good question. I supposed this takes the tricky way :roll:

There could be some ways:

a) again "inverse":
- 1,2 and 3,4 are the same
-> the inverse of 1 is 3,4
-> the inverse of 2 is 3,4
-> the inverse of 3 is 1,2
....

Of course with many files the result will be unusable, so the results can be grouped: 1,2 is "resulting group A", 3,4 is resulting group B
But this could take the wrong way ...

b) Comparing results:
Search same name and size -> result A
Search same name and size and content -> result B
The difference "A - B" is a result. Maybe not "the one and only" result ...

c) Define the source file (name, size, content / CRC) and search files with same name and size and different CRC.

But it will be tricky ...

Peter
TC 10.xx / #266191
Win 10 x64
Post Reply