From b010481e1fb24a22c22b6a279e8d24ed3ab4362a Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Wed, 19 Mar 2014 17:01:28 +0000 Subject: 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 --- doc/coreutils.texi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'doc/coreutils.texi') diff --git a/doc/coreutils.texi b/doc/coreutils.texi index e5e27eb88..75875d88c 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} -- cgit v1.2.3-54-g00ecf