>From 296a47b99fde01b29444be99469ae2045b5cd3f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?= Date: Wed, 19 Mar 2014 17:01:28 +0000 Subject: [PATCH] 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 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/coreutils.texi b/doc/coreutils.texi index e5e27eb..75875d8 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 address@hidden -- 1.7.7.6