From: Pádraig Brady
Date: Wed, 19 Mar 2014 17:01:28 +0000 (+0000) Subject: doc: clarify the operation of uniq -uD X-Git-Tag: v8.23~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b010481e1fb24a22c22b6a279e8d24ed3ab4362a;p=thirdparty%2Fcoreutils.git doc: clarify the operation of uniq -uD The description of -u was inaccurate when combined with -D: $ printf '%s\n' '1 a' '2 a' | uniq -uD -f1 1 a * doc/coreutils.texi (uniq invocation): Clarify that it's the last repeated line that is suppressed from the output. Fixes http://bugs.gnu.org/17022 --- diff --git a/doc/coreutils.texi b/doc/coreutils.texi index e5e27eb88e..75875d88c4 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -5210,8 +5210,9 @@ This is a GNU extension. @opindex -u @opindex --unique @cindex unique lines, outputting -Discard the first repeated line. When used by itself, this option -causes @command{uniq} to print unique lines, and nothing else. +Discard the last line that would be output for a repeated input group. +When used by itself, this option causes @command{uniq} to print unique +lines, and nothing else. @item -w @var{n} @itemx --check-chars=@var{n}