DIFF (or other file comparison)
Anyone know of a better file comparison utility other than DIFF? Or perhaps, let me know which flag for DIFF will compare two files and output ONLY the difference?
My scenario is I'm grepping var/log/messages for a string "global" and writing it to a file global.all
I then rename the file to global.old
Later, I grep var/log/messages again for "global" and write it to global.all
I now want to DIFF global.old and global.all and write the difference to global.new
The problem is, that DIFF puts extra characters in its output, namely < and 07,d193
I only want the EXACT differences to be in the new file.