Patch
约 1 分钟阅读
- 7 Patch Command Examples to Apply Diff Patch Files in Linux链接www.thegeekstuff.com/2014/12/patch-command-examples7 Patch Command Examples to Apply Diff Patch Files in Linux笔记:Patch
# -p,-u,--patch 生成 patch
diff -u hello.c hello_new.c > hello.patch
# patch -p[num] < patchfile
# patch [options] originalfile patchfile
# 默认读取 stdin, 使用 patch 里指定的文件
patch -u -b hello.c -i hello.patch -o hello_new.c关联信息
反向链接、本文链接的其他页面和外部资料。
参考资料
其他外链1 条
- www.thegeekstuff.com/2014/12/patch-command-exampleswww.thegeekstuff.com/2014/12/patch-command-examples