]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: uniq: clarify -f operation
authorPádraig Brady <P@draigBrady.com>
Mon, 1 Aug 2022 20:55:12 +0000 (21:55 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 1 Aug 2022 20:55:12 +0000 (21:55 +0100)
* doc/coreutils.texi (uniq invocation): State that leading blanks
are part of the field, and also that -f is one based.

doc/coreutils.texi

index d44101273740ed8b090e20a0bf63e618d6c4ea80..76f85f9d61f2d644ce1810e60dd62f620d8380e7 100644 (file)
@@ -5201,9 +5201,10 @@ The program accepts the following options.  Also see @ref{Common options}.
 @opindex -f
 @opindex --skip-fields
 Skip @var{n} fields on each line before checking for uniqueness.  Use
-a null string for comparison if a line has fewer than @var{n} fields.  Fields
-are sequences of non-space non-tab characters that are separated from
-each other by at least one space or tab.
+a null string for comparison if a line has fewer than @var{n} fields.
+Fields are a sequence of blank characters followed by non-blank characters.
+Field numbers are one based, i.e., @option{-f 1} will skip the first
+field (which may optionally have leading blanks).
 
 For compatibility @command{uniq} supports a traditional option syntax
 @option{-@var{n}}.  New scripts should use @option{-f @var{n}} instead.