hi,

here is my snippet:

# cat <<EOF>old.txt
>1
>2
>3
>EOF
# cat <<EOF>new.txt
>1
>2
# diff -Naur old.txt new.txt > update.diff
# cat update.dif
--- old.txt     2008-01-31 12:58:44.000000000 +0800
+++ new.txt     2008-01-31 12:58:51.000000000 +0800
@@ -1,3 +1,2 @@
 1
 2
-3
# patch old.txt update.diff
# cat old.txt
1
2

hope this one helps,
grexk


       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to