summaryrefslogtreecommitdiff
path: root/src/uniq.c
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2009-05-05 12:00:15 +0100
committerPádraig Brady <P@draigBrady.com>2009-05-05 17:14:51 +0100
commita6c9dd74d8083b27ca8db78791b9d6e7ba6d4478 (patch)
treebd59a6063967f8d555fff6b6777669786d0abbeb /src/uniq.c
parent8d00fb26f1bd5847f8e1318fdb99c8ef256dbece (diff)
downloadcoreutils-a6c9dd74d8083b27ca8db78791b9d6e7ba6d4478.tar.xz
doc: note the use of LC_COLLATE in comm, join and uniq
* doc/coreutils.texi (uniq invocation): Simplify the text to remove the inconsequential mentioning of order, while implying that LC_COLLATE can alter equality comparisons. * src/comm.c (usage): Mention LC_COLLATE is significant. * src/join.c (usage): Ditto. * src/uniq.c (usage): Ditto. Also improve the summary. Suggestion from Andries Brouwer
Diffstat (limited to 'src/uniq.c')
-rw-r--r--src/uniq.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/uniq.c b/src/uniq.c
index a3e0fb7b5..249b24ab3 100644
--- a/src/uniq.c
+++ b/src/uniq.c
@@ -135,8 +135,10 @@ Usage: %s [OPTION]... [INPUT [OUTPUT]]\n\
"),
program_name);
fputs (_("\
-Discard all but one of successive identical lines from INPUT (or\n\
-standard input), writing to OUTPUT (or standard output).\n\
+Filter adjacent matching lines from INPUT (or standard input),\n\
+writing to OUTPUT (or standard output).\n\
+\n\
+With no options, matching lines are merged to the first occurrence.\n\
\n\
"), stdout);
fputs (_("\
@@ -170,6 +172,7 @@ characters. Fields are skipped before chars.\n\
\n\
Note: 'uniq' does not detect repeated lines unless they are adjacent.\n\
You may want to sort the input first, or use `sort -u' without `uniq'.\n\
+Also, comparisons honor the rules specified by `LC_COLLATE'.\n\
"), stdout);
emit_bug_reporting_address ();
}