in reply to matching the contents of two (2) files

Right off the bat, I hope these aren't big files, as you could have an ugly moment when you slurp them in.

I hope this isn't some sort of homework problem? Take a look at the grep function to search for the strings...