Package: coreutils
Version: 5.97-5.2
Severity: wishlist
Hi,
I would really like to have an option to sort by IP address (IPv4 and
IPv6). The existing solutions (e.g. "-t. -n -k1,1 -k2,2 -k3,3 -k4,4")
are not really usable if the IP address is not the first field and are
also very clumbsy. Sorting by date would be nice too, but is more
complicated due to whitespace in dates.
If I write a patch, should I submit it to you or to upstream?
Best,
Norbert
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18.2
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages coreutils depends on:
ii libacl1 2.2.41-1 Access control list shared library
ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries
ii libselinux1 1.32-3 SELinux shared libraries
coreutils recommends no packages.
-- no debconf information
Package: coreutils
Version: 5.97-5.2
Followup-For: Bug #400467
Hi,
here is a ptahc that does implement IP address sorting. It currently
only does IPv4 (though adding IPv6 would not be complicated). What's
still missing is documentation and possibly configure checks for
inet_pton and ntohl. Any chance something like this could be added?
Best,
Norbert
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18.2
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages coreutils depends on:
ii libacl1 2.2.41-1 Access control list shared library
ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries
ii libselinux1 1.32-3 SELinux shared libraries
coreutils recommends no packages.
-- no debconf information
Subject: Re: Bug#400467: coreutils: support IP address sorting
Date: Sun, 26 Nov 2006 18:03:29 -0500
On Sun, Nov 26, 2006 at 05:15:57AM -0800, Norbert Kiesel wrote:
>If I write a patch, should I submit it to you or to upstream?
Upstream. There's zero chance of that going in as a debian-specific
patch.
Mike Stone
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.