Norbert Kiesel wrote: > Hi, > > I needed to sort some text by IP addresses, and there does not seem to > be a good way to do it. They only trick I found was "-n -t. -k1,1 -k2,2 > -k3,3 -k4.4" or so, but that is kind of ugly. So I hacked together a > patch that adds -I,--ipaddess-sort to sort.
For IPV4 this is too specific IMHO. You describe the general method which for me os easier/better to remember, and is easy to search for. You may have a point though for comparing IPV6 addresses. I can't figure out a general method at least. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-ipv6.html I notice also that sort doesn't support "hex", which is required when you don't have fixed width fields. Pádraig. _______________________________________________ Bug-coreutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-coreutils
