We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

hoffstein on 12/08/08


Tagged

diff


Versions (?)


Who likes this?

3 people have marked this snippet as a favorite

sulfurito
hoffstein
Dorgendubal


Create patch file


Published in: Bash 


URL: http://wget.addictivecode.org/PatchGuidelines

Patches are created using the diff program. When making patches, please use the -u option, or if your diff doesn't support it, -c. Ordinary (context-free) diffs are notoriously prone to errors, since line numbers tend to change when others make changes to the same source file.

  1. diff -u ORIGFILE CHANGEDFILE > patch.txt

Report this snippet 

You need to login to post a comment.