From cef63677078bb4e3f9bad7e15cdb6c716e5f3a92 Mon Sep 17 00:00:00 2001 From: sheldonh Date: Thu, 29 Jul 1999 18:57:39 +0000 Subject: [PATCH] Add an example for folks who can never remember how to generate a recursive diff for use with send-pr(1). PR: 12440 Requested by: David Kelly --- gnu/usr.bin/diff/diff.1 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gnu/usr.bin/diff/diff.1 b/gnu/usr.bin/diff/diff.1 index 4acd3c9ac44d..fd60bd87611a 100644 --- a/gnu/usr.bin/diff/diff.1 +++ b/gnu/usr.bin/diff/diff.1 @@ -463,6 +463,20 @@ match any pattern contained in .TP .B \-y Use the side by side output format. +.SH EXAMPLES +To save to a file some changes that you have made to your local source +tree (possibly including new files), which you would like to show to others +(perhaps using the +.B send-pr(1) +program), you could type +.sp +diff -crN foo.orig foo >foo.diff +.sp +where +.I foo.orig +and +.I foo +might be directory hierarchies or single files. .SH SEE ALSO cmp(1), comm(1), diff3(1), ed(1), patch(1), pr(1), sdiff(1). .SH DIAGNOSTICS