A hint.

I use diff occasionally.

diff file1 file2

or, to save the differences to a new file

diff file1 file2 > newfile

It's simple, fast, and very useful. However, before comparing the files, it's a really good idea to make sure they're both the same format first. If, say, one file is in DOS format with CR/LF line terminators and the other is in UNIX format with just LF line terminators, diff will tell you every single freakin' line is different. And if you didn't save the output to a new file because you were only expecting a couple of differences, you could easily waste an hour trying to figure out what the problem is.

Not that I would ever make that mistake. (stupid stupid stupid)

Posted by Ripley on July 08, 2005

Comments are closed for this entry.