Page 1 of 1

resort data in text files before comparison

Posted: 11 Oct 2022, 02:31
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?

Re: resort data in text files before comparison

Posted: 11 Oct 2022, 08:13
by Administrator
No, that's not possible.

Re: resort data in text files before comparison

Posted: 11 Oct 2022, 21:52
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.