$ diff -u file1 file2 > changes.patch
$ patch file1 < changes.patch
El documento original está disponible en https://clustercien.udea.edu.co/web/tiki-index.php?page=diff+patch