该格式用来对比修改前和修改后的两个文件的差异

1
可以看出图中的两个文件 _lao_ 和 _tzu_ 中的字段有一些差异。
使用命令diff -u lao tzu后输出如下图:
2
首段的

--- lao 2002-02-21 23:30:39.942229878 -0800
+++ tzu	2002-02-21 23:30:50.442260588 -0800

代表_lao_文件是-表征,_tzu_文件是+表征。
-1,7 +1,6 @@```和```@@ -9,3 +8,6 @@```代表该对比段在源文件中的【块起始行,块所占行数】。后面的代码中,如
``` -The Way that can be told of is not the eternal Way; -The name that can be named is not the eternal name. The Nameless is the origin of Heaven and Earth; -The Named is the mother of all things. +The named is the mother of all things.

所示,-代表是_lao_文件中独有的,+代表是_tzu_文件中独有的。没有+-的字段代表是两个文件共有的。