The diff program compares two files (or like files in each of two directories) line by line. It can be set to operate such that it ignores differences that are related only to the case of the letters, or the amount of white space.