diff options
author | Jim Meyering <meyering@redhat.com> | 2007-12-18 11:20:31 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2007-12-18 11:20:45 +0100 |
commit | e19a5aa428f9391bbd58879b27f083c1a835af5a (patch) | |
tree | e400b4def6f1b357b7d1dd30efedd4346e0fe7ae | |
parent | d1dba816fb9ce88ba1b941965ca9811ed47080bc (diff) | |
download | coreutils-e19a5aa428f9391bbd58879b27f083c1a835af5a.tar.xz |
Note that sorting uniq's input is often useful.
Suggested by Eric Blake.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | src/uniq.c | 7 |
3 files changed, 16 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2007-12-18 Jim Meyering <meyering@redhat.com> + + * src/uniq.c (usage): Note that sorting uniq's input is often useful. + Suggested by Eric Blake. + 2007-12-15 Jim Meyering <meyering@redhat.com> Version 6.9.91. @@ -1,5 +1,9 @@ GNU coreutils NEWS -*- outline -*- +* Noteworthy changes in release 6.? (????-??-??) [?] + + + * Noteworthy changes in release 6.9.91 (2007-12-15) [beta] ** Bug fixes diff --git a/src/uniq.c b/src/uniq.c index 286452249..5fcbed9a4 100644 --- a/src/uniq.c +++ b/src/uniq.c @@ -168,6 +168,13 @@ Mandatory arguments to long options are mandatory for short options too.\n\ A field is a run of whitespace, then non-whitespace characters.\n\ Fields are skipped before chars.\n\ "), stdout); + fputs (_("\ +\n\ +Note: while uniq can be useful even with unsorted input, in most applications\n\ +the input is sorted in a manner consistent with field-selection options.\n\ +E.g., use `sort' if `uniq' uses no such option (or simply use `sort -u');\n\ +use `sort -k 3b' with uniq -f2.\n\ +"), stdout); emit_bug_reporting_address (); } exit (status); |