[Top][All Lists]

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

Re: [patch] add sort option for IP addresses

From: Pádraig Brady
Subject: Re: [patch] add sort option for IP addresses
Date: Mon, 27 Nov 2006 10:22:39 +0000
User-agent: Mozilla Thunderbird 1.0.8 (X11/20060502)

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.
I notice also that sort doesn't support "hex", which is
required when you don't have fixed width fields.


reply via email to

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