On Apr 4, 2005, at 5:27 PM, Rick Macdougall wrote:
patch -p0 < patch.file
etc
You might want -p0 or -p1 depending on the patch type. You might or might not want to be in the same directory as the original files depending on the patch type.
I always like to include the '--dry-run' option to patch the first time through, in case I used the wrong -p option or there are other problems (like patches that aren't going to apply correctly).
Once I'm confident it will run smoothly, I just remove the --dry-run from the last command.
If you're on BSD, the equivalent is -C I believe, unless gpatch is installed.
Bill