Difference between revisions of "Diff utility"
From Wiki @ Karl Jones dot com
Karl Jones (Talk | contribs) (→External links) |
Karl Jones (Talk | contribs) (→See also) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
In [[computing]], the '''diff utility''' ('''diff tool''', etc.) is a [[Data comparison|data comparison]] tool that calculates and displays the differences between two files. | In [[computing]], the '''diff utility''' ('''diff tool''', etc.) is a [[Data comparison|data comparison]] tool that calculates and displays the differences between two files. | ||
− | |||
− | |||
== Description == | == Description == | ||
− | Unlike edit distance notions used for other purposes, diff is line-oriented rather than character-oriented, but it is like Levenshtein distance in that it tries to determine the smallest set of deletions and insertions to create one file from the other. | + | Unlike edit distance notions used for other purposes, diff is line-oriented rather than character-oriented, but it is like [[Levenshtein distance]] in that it tries to determine the smallest set of deletions and insertions to create one file from the other. |
The diff command displays the changes made in a standard format, such that both humans and machines can understand the changes and apply them: given one file and the changes, the other file can be created. | The diff command displays the changes made in a standard format, such that both humans and machines can understand the changes and apply them: given one file and the changes, the other file can be created. | ||
Line 15: | Line 13: | ||
* [[Computing]] | * [[Computing]] | ||
* [[Data comparison]] | * [[Data comparison]] | ||
+ | * [[Levenshtein distance]] | ||
+ | * [[WinDiff]] | ||
== External links == | == External links == |
Latest revision as of 14:46, 24 April 2016
In computing, the diff utility (diff tool, etc.) is a data comparison tool that calculates and displays the differences between two files.
Description
Unlike edit distance notions used for other purposes, diff is line-oriented rather than character-oriented, but it is like Levenshtein distance in that it tries to determine the smallest set of deletions and insertions to create one file from the other.
The diff command displays the changes made in a standard format, such that both humans and machines can understand the changes and apply them: given one file and the changes, the other file can be created.
Typically, diff is used to show the changes between two versions of the same file.
See also
External links
- diff utility @ Wikipedia
- WinMerge