[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
document or fix dangers of sort -u + any other option
From: |
jidanni |
Subject: |
document or fix dangers of sort -u + any other option |
Date: |
Sun, 28 Jun 2009 10:49:49 +0800 |
Please fix the third command,
$ echo -e 'a1\nb2\nc3\nb2'|sort -n|sort -u
a1
b2
c3
$ echo -e 'a1\nb2\nc3\nb2'|sort -u|sort -n
a1
b2
c3
$ echo -e 'a1\nb2\nc3\nb2'|sort -nu
a1
or warn right there on the man page.
Sure, you say
-u, --unique
with -c, check for strict ordering; without -c, output
only the first of an equal run
but still warn that the above will happen if one tries to combine
anything with -u.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- document or fix dangers of sort -u + any other option,
jidanni <=