Linuxdiff与patch的深入分析Linux认证考试
文章作者 100test 发表时间 2010:04:15 20:14:14
来源 100Test.Com百考试题网
1)diff的传统格式输出.
############################################
cat before.txt
输出:
This is a line to be 0deleted
This is a line that will be changed
This is a line that will be unchanged
cat after.txt
输出:
This is a line that has been changed
This is a line that will be unchanged
This is a line that has been added
############################################
diff before.txt after.txt
输 出:
1,2c1