bigcat47

比较文件将结果保存到patch文件:diff -u test1.txt test2.txt > patchfile 

test1.txt应用patch文件,并备份(test1.txt.orig):patch -b test1.txt patchfile

升级成功后test1.txt和test2.txt是一样的:diff test1.txt test2.txt

将test1.txt回退到旧版本:patch -R test1.txt patchfile

回退成功后test1.txt和test1.txt.orig是一样的:diff test1.txt test1.txt.orig

分类:

技术点:

相关文章:

  • 2021-10-07
  • 2021-05-13
  • 2021-06-13
  • 2021-12-12
  • 2021-10-05
  • 2021-10-28
  • 2021-09-17
  • 2021-09-17
猜你喜欢
  • 2021-06-16
  • 2021-09-17
  • 2021-12-09
  • 2021-11-21
  • 2021-09-17
  • 2021-08-31
  • 2021-05-17
相关资源
相似解决方案