> diff -u old.c new.c > patch.diff > will for example give you a patch to go from old.c to new.c > > Don't forget to re-read your patch so that you don't make some > whitespace changes. Or use diff -ub old.c new.c > patch.diff Then diff will ignore whitespace changes. No reason not to reread the patch though :)