Common words in text files

  • Thread starter Thread starter Vic Dura
  • Start date Start date
V

Vic Dura

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.

Thanks.
 
Hey there,

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.

Thanks.

You should be able to use SideBySide
<http://www.galaxywebsitedesign.com/sideby/index.html> or ExamDiff
<http://www.prestosoft.com/ps.asp?page=edp_examdiff>, or any text
comparing utility, and instead of using the highlighted differences as
your results, just use the unhighlighted ones, since those are
identical.

WARNING: It looks like this might no longer be true freeware, since
there's mention of trial mode on the comparison page of the different
versions, but if it's still recommended in here, or if there's a
genuine freeware version, you might want to check this out:

If you'd rather have a list, NoteTab Light
<http://www.notetab.com/ntl.php> might be able to do what my paid
version of NoteTab does. In the Tools menu I have a Text Statistics
entry that lists all words in any text file that I have open and tells
me (among other things) how frequently they occur in the file. The
results can be copied and pasted elsewhere. You might either want to
try the free version or find out from someone who has it whether that
function is available. Sorry I can't help on this part.
 
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
 
Back
Top