summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2009-05-15 17:28:51 +0100
committerPádraig Brady <P@draigBrady.com>2009-05-18 16:17:31 +0100
commit39285f6008a26ff1d5facbffcbf12f57d60564d1 (patch)
tree715b638eb04e0365d71e37bcbcd814a531425fac /src
parentb7f6e0d51680a6b5d5c992b59ddb403673ee4ae2 (diff)
downloadcoreutils-39285f6008a26ff1d5facbffcbf12f57d60564d1.tar.xz
doc: clarify the operation of the comm -123 parameters
* src/comm.c (usage): give more information on the -123 parameters, with examples to show that they can be combined. Addresses <http://savannah.gnu.org/bugs/?24974>. * doc/coreutils.texi (comm invocation): Mention that the column separators are suppressed along with the column. Suggestion from Dan Jacobson. * man/comm.x: Reference other commands that match adjacent lines. * man/join.x: ditto. * man/uniq.x: ditto.
Diffstat (limited to 'src')
-rw-r--r--src/comm.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/comm.c b/src/comm.c
index 3c5b09ad4..e37cf8875 100644
--- a/src/comm.c
+++ b/src/comm.c
@@ -114,9 +114,9 @@ and column three contains lines common to both files.\n\
"), stdout);
fputs (_("\
\n\
- -1 suppress lines unique to FILE1\n\
- -2 suppress lines unique to FILE2\n\
- -3 suppress lines that appear in both files\n\
+ -1 suppress column 1 (lines unique to FILE1)\n\
+ -2 suppress column 2 (lines unique to FILE2)\n\
+ -3 suppress column 3 (lines that appear in both files)\n\
"), stdout);
fputs (_("\
\n\
@@ -133,6 +133,13 @@ and column three contains lines common to both files.\n\
\n\
Note, comparisons honor the rules specified by `LC_COLLATE'.\n\
"), stdout);
+ printf (_("\
+\n\
+Examples:\n\
+ %s -12 file1 file2 Print only lines present in both file1 and file2.\n\
+ %s -3 file1 file2 Print lines in file1 not in file2, and vice versa.\n\
+"),
+ program_name, program_name);
emit_bug_reporting_address ();
}
exit (status);