On 06/26/2011 06:05 PM, Bob Proulx wrote:
> scott n-h wrote:
>> -I or --ip-address
>> I'm hoping the usefulness of this would be apparent.
>
> The coreutils manual:
>
>
>http://www.gnu.org/software/coreutils/manual/html_node/sort-invocation.html#sort-invocation
>
> Shows an example of sorting IPv4 addresses this way:
>
> sort -s -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n
However, there's no easy way to sort IPv6 addresses using existing sort
keys, so maybe there is indeed room for improvement, if someone would
care to contribute code.
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc Description: OpenPGP digital signature