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
# -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