Match Identical Strings in Two txt Files

General questions about using ExamDiff Pro, ideas for new features, bug reports, and usage tips.
Post Reply
deepdoc1
New Member
Posts: 1
Joined: Thu Nov 20, 2008 2:47 pm

Match Identical Strings in Two txt Files

Post by deepdoc1 »

New user here....

I have 2 txt files with server names. Many of these names will be identical in both files, some other names will be different in each file. Can ExamDiff Pro sort and match the identical names and highlight the differences for me?

Thanks in advance,

JimB
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Match Identical Strings in Two txt Files

Post by psguru »

Yes. If you want to sort files prior to comparison, enable the Sort plug-in (Options | Plug-ins) for your file extension. Alternatively, do right-click, Apply Plug-in, Sort for each file after the initial comparison, then re-compare.
psguru
PrestoSoft
Manor
Junior Member
Posts: 12
Joined: Thu May 04, 2006 10:58 am
Location: Sweden

Re: Match Identical Strings in Two txt Files

Post by Manor »

I have a similar question as deepdoc1.

I compare two text files (A, B). Both text files contains eight characters member names. Text file A could be considered the master. I would like to compare the files in the same way that deepdoc1 asked for.


I would like to have this result:
File A: File B:
AAAAAAAA AAAAAAAA (identical)
BBBBBBBB (just in file B)
CCCCCCCC (just in file A)
CCCCXXXX (just in file B)
CCCCYYYY (just in file B)
DDDDDDDD DDDDDDDD (identical)

...but I get this result:
File A: File B:
AAAAAAAA AAAAAAAA
BBBBBBBB
CCCCCCCC CCCCXXXX
CCCCYYYY
DDDDDDDD DDDDDDDD
(I haven't accually tested this sample above...but the result with many thousand members per file is very similar).

In my case I'm most interested to find the member CCCCCCCC in file A without any matching member in file B.
Is it possible to get the above result with any option?

Best regards,
Manor
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Match Identical Strings in Two txt Files

Post by psguru »

Not automatically. However, version 5.0 has a new command, "Split Block", that will split a Changed block into a pair of Added and Deleted blocks, thus separating the line you are interested in.
psguru
PrestoSoft
Post Reply