[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in sort .
From: |
L.Palmerini |
Subject: |
Bug in sort . |
Date: |
Fri, 13 Oct 2006 19:42:02 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; it-IT; rv:1.7.12) Gecko/20060216 Debian/1.7.12-1.1ubuntu2 |
Consider the email list in test1 (attacched)
With some test You show sort coreutils bug.
If You sort emails in test1
sort test1 | less
You obtain
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
that's wrong!!
If You sort only the username of emails in test1
gawk '{ print substr($0,1,index($0,"@"))}' test1 | sort | less
admin@
admin@
admin@
admin@
admin@
admin@
admin@
administrator@
administrator@
adminoresteblog@
a.pellegrino@
address@hidden@e
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
That's wrong . The char after "@" make sort crazy.
Please, do not public emails , they are real.
Loris Palmerini
- Bug in sort .,
L.Palmerini <=