Diff: a quick guide for those who want to become acquainted with the basics.
This is not a technical question. I once saw an internet page explaining, in no more than two or three screens, the essentials of diff. I carefully sent it to the disk but, now, it seems I cannot figure out where exactly.
So, my question is: can anybody send me a link to a "guide" like the above mentioned?
What I remember well is that, by teaching that diff was conceived with the mind put in this scheme: given a file and diff output, construct a second file, which is "the other file" whose name was entered as the second argument of diff., the work of understanding diff output is half done.
However, there are three classes of items in the output whose meaning is nebulous to me: the numbers, such as 3a4,6; the signs < and > and the lines like ---------- (dashes). All three seem to play the role of separators.
Example: why some lines marked < and others > ? The dashes look like separating blocks of text.
Above all, it's very dificult for me to interpret what blocks of text belong to file 1 and which belong to file2.
Yes, I know. diff info pages are almost a tutor (some sections). But what I read, coming back to the thread subject, was really concise: Very well written and yet very small in extension.
In fact, any reference to reading material would be welcome.
Last edited by stf92; 06-14-2011 at 12:08 PM.