> I tried this: > > cat list.txt | \ > env LANG=C sort -t. -k1n -k2n -k3n -k4n > > But the result is incorrectly sorted: ... > 10.225.101.125 > 10.81.90.165
That's the expected behavior, because of the way you specified the keys. This should do what you want: env LANG=C sort -t. -k1,1n -k2,2n -k3,3n -k4,4n _______________________________________________ Bug-coreutils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-coreutils
