diff patch

  • To create the patch for file1 from the modified file2
    $ diff -u file1 file2 > changes.patch
  • To apply the patch to the original file1:
    $ patch file1 < changes.patch


El documento original está disponible en https://clustercien.udea.edu.co/web/tiki-index.php?page=diff+patch