Does anyone know of a program that will list or show the words that
two text files have in common? I'm looking for commonality, not
differences.
To compare files and display the results graphically, use Windiff.exe.
The following line shows Windiff command-line syntax:
windiff [path1] [path2]
where path1 and path2 indicate the files to be compared. Windiff uses
the following rules to determine what is to be compared:
- If you invoke Windiff without specifying path1 or path2, you can click
Compare Files or Compare Directories from the File menu to specify the
files to compare.
- If you invoke WINDIFF with a filename for path1, but nothing for
path2, Windiff compares the file with a file of the same name in the
current directory.
- If you invoke Windiff with a directory name for path1, but nothing for
path2, Windiff compares the files in the specified directory with the
files in the current directory.
- If you invoke Windiff specifying files for path1 and path2, Windiff
compares the two files.
- If you invoke Windiff specifying directories for path1 and path2,
Windiff compares the files in those directories.
The results are initially displayed in outline mode. Windiff lists the
files that were compared and indicates whether they are identical or
whether one file is newer than the other. To view the differences in
expanded mode, select the file from the display and click the Expand
button. The parts that are common to both files are displayed on a white
background. The parts that belong to the file listed on the left are
displayed on a red background. The parts that belong to the file listed
on the right are displayed on a yellow background. To return to outline
mode, click the Outline button.
For more information, see the help file Windiff.hlp, which is included
with Windiff.
http://www.grigsoft.com/download-windiff.htm
Use view=expanded options=show identical lines