To Compare two sorted files line by line use this command:

CODE:
comm