resort data in text files before comparison
resort data in text files before comparison
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?
-
- Site Admin
- Posts: 4049
- Joined: 04 Oct 2004, 18:38
- Location: Thailand
- Contact:
Re: resort data in text files before comparison
No, that's not possible.
Re: resort data in text files before comparison
While not directly, you could automate something.
(Pseudo-code)
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.
(Pseudo-code)
Code: Select all
FOR I in *.txt
do
SORT %I > \tmp\X\%I
done
[path-to]\AllDup.exe -s4 \tmp\X\
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.