How can I output the 'sames', not the 'diffs'?

General questions about using ExamDiff Pro, ideas for new features, bug reports, and usage tips.
Post Reply
christopherc
New Member
Posts: 7
Joined: Wed Feb 08, 2006 7:08 am

How can I output the 'sames', not the 'diffs'?

Post by christopherc »

I have 2 files that I compare and can output the diffs to file. How can I ignore the diffs and output the same content found in both files?

thx.
User avatar
psguru
Site Admin
Posts: 2232
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Post by psguru »

You can -- but only for HTML reports (standard UNIX diff output format does not present identical lines).

1. Start EDP, go to Options | Display | View Filter and change "file Comparison Filter" to only have "View identical segments" checked, click on OK and exit EDP
2. Run the following command line (obviously, your file names will be different):
examdiff C:\temp\_test1 C:\temp\_test2 /d /o:c:\temp\out.htm /html
psguru
PrestoSoft
christopherc
New Member
Posts: 7
Joined: Wed Feb 08, 2006 7:08 am

Post by christopherc »

Thanks, but I did not make myself clear in what I was after. For example, I have two .txt files as such:

1:
This
is
a
test.

2:
This
is
how
this will fail.

I only want to output:

Output:
This
is

Not the diffs. It seems a strange request but sometimes I need to know what is common as well.

Thanks!
User avatar
psguru
Site Admin
Posts: 2232
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Post by psguru »

I see. No, you can't do this in EDP. I though you needed to have a report where only identical lines of both files are present.
psguru
PrestoSoft
Post Reply