bug-coreutils
[Top][All Lists]
Advanced

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

sort -u -n error : sort v 4.5.3


From: Will Smith
Subject: sort -u -n error : sort v 4.5.3
Date: Sat, 04 Mar 2006 19:29:00 +0000
User-agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929)

Sort : the -u (unique) and  -n (numeric) options seem to clash, removing too 
many lines.


address@hidden data]# cat /tmp/new_spammers
64.202.165.132
64.202.165.131
64.202.165.133


address@hidden data]# sort -u < /tmp/new_spammers
64.202.165.131
64.202.165.132
64.202.165.133

[
address@hidden data]# sort -n < /tmp/new_spammers
64.202.165.131
64.202.165.132
64.202.165.133


address@hidden data]# sort -u -n < /tmp/new_spammers
64.202.165.132





Workaround: run sort twice, once with each parameter.


address@hidden data]# sort -u < /tmp/new_spammers | sort -n
64.202.165.131
64.202.165.132
64.202.165.133




Regards,

--
Will Smith
Web   : www.willsmith.org
Email : www.willsmith.org/contactme.php









reply via email to

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