Howtoforge published a tutorial showing you how to do line-by-line comparison of files in Linux using diff command.
How to do line-by-line comparison of files in Linux using diff command
In Linux, the diff command can be used to compare two files, but the thing is that theres a slight learning curve involved with this utility.
How to do line-by-line comparison of files in Linux using diff command