From e19a5aa428f9391bbd58879b27f083c1a835af5a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 18 Dec 2007 11:20:31 +0100 Subject: Note that sorting uniq's input is often useful. Suggested by Eric Blake. --- src/uniq.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/uniq.c b/src/uniq.c index 286452249..5fcbed9a4 100644 --- a/src/uniq.c +++ b/src/uniq.c @@ -167,6 +167,13 @@ Mandatory arguments to long options are mandatory for short options too.\n\ \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 (); } -- cgit v1.2.3-70-g09d2