Written by
in
Generate a patch: diff -Nur OldDir NewDir > xxx.patch
Apply a patch
patch –p 0 < xxx.patch