bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sort -nu


From: 2004
Subject: sort -nu
Date: Sat, 9 Oct 2004 10:46:32 -0500 (CDT)

Although not a bug, sort's documentation might be wise to explicitly
mention that -u's behaviour is effected by options like -n.  The following
example was not what I expected, though I now understand why.  -u's
behaviour being effected by other options is powerful if understood, but
dangerous if not.  Thanks a million for all your efforts, GNU!

# sort -n -u < example_input |wc
     26      52     750
# sort -n < example_input | sort -u |wc
    219     438    6230


Attachment: example_input
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]