Showing posts with label messages. Show all posts
Showing posts with label messages. Show all posts

March 13, 2012

Suppress diff Missing File Messages

To suppress the missing file messages diff generates when creating a patch for multiple files, just filter them out with grep.  For example:
diff -rc olddir newdir | grep -v -e "^Only in" > diffs.patch