2010年12月1日 星期三

Linux Commands - patch, diff

>> produce the patch file
# diff -uN file.c file.c.new > file.c.patch

>> patch the file to the original file
# patch -p0 file.c < file.c.patch

沒有留言: