Page 1 of 1
How can I output the 'sames', not the 'diffs'?
Posted: Wed Feb 08, 2006 7:13 am
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.
Posted: Wed Feb 08, 2006 5:43 pm
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
Posted: Thu Feb 09, 2006 9:07 am
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!
Posted: Thu Feb 09, 2006 5:25 pm
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.