miércoles, 9 de mayo de 2012

Creates patches using diff

Do.  
 
diff -u old.sh new.sh > file.patch
 
example- file.patch 
 
 
--- old.sh      2012-05-09 20:10:05.596606469 -0300
+++ new.sh      2012-05-09 20:12:24.765286827 -0300
@@ -8,4 +8,13 @@

 echo -n "Your full name is:" $nombre

+echo
+
+echo -n " Now tell me your age :"
+
+read age 
+
+
+echo -n " Your age is : " $age
+
 echo
 
 Apply the patch
 
$ patch -p1 old.sh < file.patch 
patching file old.sh

 Your comments are welcome.
 

No hay comentarios:

Publicar un comentario