Programming and posix - April 2002

April 3, 2002
Solution Symposium
Page 66
hp e3000
programming
and posix
diff and patch commands
diff - compares two files and reports on differences
-r option recursively compares two directory trees
-u option on GNU diff for making open-source
patches
patch - modifies files using diff output
can modify entire directory trees
saves rejected diff code in *.rej files
use GNU patch to handle diff -u format