Matching files against one another

I have 2 files, what is needed is a list of the items that are exactly the same in both files; each of which contain thousands of items.  The compare function (file, document, compare) doesn’t do what I need.  Is there a simple way to do this?  

Am using WPX8 in Windows 10.