summaryrefslogtreecommitdiff
path: root/doc/coreutils.texi
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2014-03-19 17:01:28 +0000
committerPádraig Brady <P@draigBrady.com>2014-03-19 19:07:53 +0000
commitb010481e1fb24a22c22b6a279e8d24ed3ab4362a (patch)
tree9fd32a32555810830068406f68466a519b4462e3 /doc/coreutils.texi
parentc9e410761d03be58f490e9be4196afbdc67974c8 (diff)
downloadcoreutils-b010481e1fb24a22c22b6a279e8d24ed3ab4362a.tar.xz
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
Diffstat (limited to 'doc/coreutils.texi')
-rw-r--r--doc/coreutils.texi5
1 files changed, 3 insertions, 2 deletions
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}