patch

来源:互联网 发布:p2p理财安全吗 知乎 编辑:程序博客网 时间:2024/05/01 17:13
 

cat >> test1 << EOF
> 111111
> 111111
> EOF

diff -Nu test1 test2 > test.patch

patch -p0 <test.patch
 patch -RE < test.patch
--- tt/ttt/test1    2009-12-19 22:28:26.582959182 +0800
+++ tt/ttt/test2    2009-12-19 22:28:42.798928591 +0800

原创粉丝点击