sorting IP addresses

Tim McNamara <[email protected]> Thu, 22 Dec 2011 14:46:29 +1300
Newsgroups gmane.org.user-groups.linux.new-zealand.general
Message-ID <CA+YLJLuUK_DzFv+CsHqL7-G5rzQrupen_razrnh1-6X2u=q1vQ@mail.gmail.com>
`sort -n` does a good job with most numbers, but is imprecise with IP4
addresses because they're apparently tokenized by the first
non-numeric character.

How would I recursively sort through all four fields of a form nnn.nnn.nnn.nnn?

_______________________________________________
NZLUG mailing list [email protected]
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug