Diff

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by PierreAbbat (talk | contribs) at 17:32, 2 September 2002 (start). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

diff is a Unix utility that outputs the difference between two files. In unified format, each line that occurs only in the left file is preceded by a minus sign, each line that occurs only in the right file is preceded by a plus sign, and common lines are preceded by a space. Lines beginning with three plus signs indicate the number of lines in each hunk, the file names, and where in the files to find them. Diffs are often used as input to the patch program.