User to user discussion and support for UltraEdit, UEStudio, UltraCompare, and other IDM applications.

Two- and three-way text compare and merge issues.
8 posts Page 1 of 1
I have a recurring issue that has been driving me crazy for the longest time.

When I compare two simple lists of numbers, in addition to the obvious differences and matches, I regularly get "partial" hits that make it very difficult to resolve the comparison.

In the attached screenshot, the problems are the "564123" on the left and the "564093" on the right.

Suggestions?

Attachments

All text compare applications I know have problems on comparing such shorts lines with similar data. A text compare is designed to find 100% identical blocks, completely different blocks, and similar blocks. With such short lines containing similar text the comparison result is often not what the user expect as the user expects a result of 100% identical or not identical at all.

The comparison result might be easier to interpret with turning off View - Relational Lines Mode.

But best would be to do such comparisons using an UltraEdit script which outputs what is 100% identical and what exists only in file A and what only in file B ignoring all similarities.

The UltraEdit Scripts forum already contain such scripts, see for example:

Get unique lines in two files into two new files
Find lines containing a number stored in a list in another file
Copy lines in the active document containing strings listed in another file
Identifying duplicates in file 1 also in file 2 and report the uniques in file 2 only

As you can see most users completely automate such simple comparisons for which text compare applications are not designed by using a script.

The opposite would be a script like posted at Check for similar lines and mark or output them for manual review which explicitly finds lines which are very similar or completely identical.
Best regards from Austria
Hmm. I will try the scripts, though it seems like a workaround.

I guess I'm just confused why a text comparison would yield an "almost" or ""similar" result instead of either "different" or "match". This now makes me question whether or not UltraCompare is returning accurate comparisons.

In any case, I'll try the scripts.
UltraCompare returns accurate results for those 2 lists of numbers and the scripts are not workarounds. I have explained already that text compare applications like UltraCompare are designed to find and display also similar lines and not just 100% identical or not identical because at least 1 character is different. I'm quite sure that if you try other comparison tools designed for text compare like UltraCompare, you will get the same result. You have simply the wrong expectations for what a text compare application is designed for and therefore what it returns when using such an application designed for block compares with such data which have nothing common with text files containing real text or source code.
Best regards from Austria
It's a tricky problem for sure. I think Beyond Compare does a better job generally:

Compare.PNG
Compare.PNG (6.06 KiB) Viewed 2407 times
UltraCompare displays the same result like Beyond Compare with View - Relational Lines Mode disabled as I have suggested in my first post.
Best regards from Austria
Not quite (for me at least). It doesn't display the character differences on 564123, but maybe that's an option somewhere.
Okay, one more image for the data

Code: Select all
564075
564123
564211
564285
564468
564495

and

Code: Select all
562467
562539
563119
563354
563376
564075
564093
564285
564495

made on result displayed by UltraCompare Professional v8.50.0.1026 with Relational Lines Mode being disabled.

uc_prof_no_relational_lines.png
uc_prof_no_relational_lines.png (1.7 KiB) Viewed 2385 times

The colors are not the standard colors of UltraCompare Professional after installation. I have modified some colors at Options - Configuration - Display - Text - Colors & Font. If the digits 12 in 564233 and 09 in 564093 are not displayed different, the foreground color setting for Difference Text is most likely not defined well.
Best regards from Austria
8 posts Page 1 of 1
cron