[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sort -nu
From: |
Paul Eggert |
Subject: |
Re: sort -nu |
Date: |
Sat, 09 Oct 2004 11:57:19 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
address@hidden writes:
> Although not a bug, sort's documentation might be wise to explicitly
> mention that -u's behaviour is effected by options like -n.
The CVS version of coreutils
<http://savannah.gnu.org/projects/coreutils/> says this
in its Texinfo documentation:
The commands @code{sort -u} and @code{sort | uniq} are equivalent, but
this equivalence does not extend to arbitrary @command{sort} options.
For example, @code{sort -n -u} inspects only the value of the initial
numeric string when checking for uniqueness, whereas @code{sort -n |
uniq} inspects the entire line. @xref{uniq invocation}.
- sort -nu, 2004, 2004/10/09
- Re: sort -nu,
Paul Eggert <=