in reply to matching the contents of two (2) files
I hope this isn't some sort of homework problem? Take a look at the grep function to search for the strings...
cheers
--b