Will Smith <[EMAIL PROTECTED]> writes: > Sort : the -u (unique) and -n (numeric) options seem to clash, removing too > many lines. > > > [EMAIL PROTECTED] data]# cat /tmp/new_spammers > 64.202.165.132 > 64.202.165.131 > 64.202.165.133 [...] > [EMAIL PROTECTED] data]# sort -u -n < /tmp/new_spammers > 64.202.165.132
Not a bug: all three lines have the same sort key, namely the number 64.202, the rest of the sort field is ignored. You probably want to split the line on the period and treat each whole number as a separate sort key: $ sort -t. -u -n -k1,1 -k2,2 -k3,3 -k4,4 < /tmp/new_spammers Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils