10-29-2001
909,
4
Join Date: Oct 2000
Last Activity: 7 May 2009, 12:22 PM EDT
Location: Sacramento, CA
Posts: 909
Thanks Given: 0
Thanked 4 Times in 4 Posts
Use the 'patch' program.
Example: patch < resultFile
That will search for the appropriate file to patch in your current directory and apply the changes if possible. I always prefer to use the unified diff format as I find it much easier to read if I need to examine a patch before applying it. Unified format diffs are based on context so they can be applied even if your source file has other (unrelated) changes. Just use the '-u' option to diff instead of '-e'.
Check the patch and diff man pages for more info.