resort data in text files before comparison

English support for the software AllDup
Post Reply
Shooter3k
Posts: 7
Joined: 18 Jun 2022, 00:12

resort data in text files before comparison

Post by Shooter3k »

Is it possible to have a format or sort step before the comparison runs so that it would take each file that you want to compare the contents on, then format/sort the file, and then compare the contents?
Administrator
Site Admin
Posts: 4046
Joined: 04 Oct 2004, 18:38
Location: Thailand
Contact:

Re: resort data in text files before comparison

Post by Administrator »

No, that's not possible.
therube
Posts: 322
Joined: 07 Nov 2012, 00:28

Re: resort data in text files before comparison

Post by therube »

While not directly, you could automate something.

(Pseudo-code)

Code: Select all

FOR I in *.txt
do
SORT %I > \tmp\X\%I
done
[path-to]\AllDup.exe  -s4  \tmp\X\
Something like that would
sort each file (by default, alpha)
write the sorted file to \tmp\X\[filename]
when that is done
AllDup fires up & does a content comparison on the files in \tmp\X.


Now, once you've found the dups in \X\, you'd have to correlate them back to the source directory.
Post Reply