From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 30 12:12:05 2010 Received: (at submit) by debbugs.gnu.org; 30 Mar 2010 16:12:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nwe2u-0002EG-MY for submit@debbugs.gnu.org; Tue, 30 Mar 2010 12:12:05 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwdUc-0001xl-AZ for submit@debbugs.gnu.org; Tue, 30 Mar 2010 11:36:38 -0400 Received: from lists.gnu.org ([199.232.76.165]:51782) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NwdUU-0003Fd-I6 for submit@debbugs.gnu.org; Tue, 30 Mar 2010 11:36:30 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NwdUT-0004Lp-K5 for bug-coreutils@gnu.org; Tue, 30 Mar 2010 11:36:29 -0400 Received: from [140.186.70.92] (port=37766 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwdUN-0004Kk-VK for bug-coreutils@gnu.org; Tue, 30 Mar 2010 11:36:28 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_50,RDNS_DYNAMIC, TO_NO_BRKTS_DYNIP autolearn=no version=3.3.0 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwdUJ-0003aO-Uu for bug-coreutils@gnu.org; Tue, 30 Mar 2010 11:36:20 -0400 Received: from 70-90-109-228-ma-ne.hfc.comcastbusiness.net ([70.90.109.228]:53545 helo=zimbra.solidstatescientific.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwdUJ-0003a4-SF for bug-coreutils@gnu.org; Tue, 30 Mar 2010 11:36:19 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.solidstatescientific.com (Postfix) with ESMTP id 934A55AD1A4 for ; Tue, 30 Mar 2010 11:14:06 -0400 (EDT) X-Virus-Scanned: amavisd-new at Received: from zimbra.solidstatescientific.com ([127.0.0.1]) by localhost (zimbra.solidstatescientific.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8gBdZCqFOQl9 for ; Tue, 30 Mar 2010 11:14:05 -0400 (EDT) Received: from zimbra.solidstatescientific.com (zimbra.solidstatescientific.com [70.90.109.228]) by zimbra.solidstatescientific.com (Postfix) with ESMTP id 4AAD65AC64E for ; Tue, 30 Mar 2010 11:14:05 -0400 (EDT) Date: Tue, 30 Mar 2010 11:14:05 -0400 (EDT) From: Phil Dumont To: bug-coreutils@gnu.org Message-ID: <4164007.19851269962045007.JavaMail.root@zimbra.solidstatescientific.com> Subject: sort --human MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [70.90.109.225] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 30 Mar 2010 12:12:03 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) It sure would be nice if the sort command had a --human option: du -s --human * | sort --human phil From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 30 13:04:16 2010 Received: (at 5804-done) by debbugs.gnu.org; 30 Mar 2010 17:04:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwerP-0002fi-WC for submit@debbugs.gnu.org; Tue, 30 Mar 2010 13:04:16 -0400 Received: from joseki.proulx.com ([216.17.153.58]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwerL-0002fb-PQ for 5804-done@debbugs.gnu.org; Tue, 30 Mar 2010 13:04:14 -0400 Received: from dementia.proulx.com (dementia.proulx.com [192.168.230.115]) by joseki.proulx.com (Postfix) with ESMTP id BE8AB21401; Tue, 30 Mar 2010 11:04:06 -0600 (MDT) Received: by dementia.proulx.com (Postfix, from userid 1000) id AB99B3CC20C; Tue, 30 Mar 2010 11:04:06 -0600 (MDT) Date: Tue, 30 Mar 2010 11:04:06 -0600 From: Bob Proulx To: Phil Dumont Subject: Re: bug#5804: sort --human Message-ID: <20100330170406.GA17531@dementia.proulx.com> References: <4164007.19851269962045007.JavaMail.root@zimbra.solidstatescientific.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4164007.19851269962045007.JavaMail.root@zimbra.solidstatescientific.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam-Score: -2.5 (--) X-Debbugs-Envelope-To: 5804-done Cc: 5804-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) Phil Dumont wrote: > It sure would be nice if the sort command had a --human option: > du -s --human * | sort --human Ask and you shall receive. Seek and ye shall find! (Or in this case if you had searched you would have found it. :-) Sort has had that option since coreutils release 7.5. Here is the release announcement. http://lists.gnu.org/archive/html/bug-coreutils/2009-08/msg00201.html * Noteworthy changes in release 7.5 (2009-08-20) [stable] ** New features sort accepts a new option, --human-numeric-sort (-h): sort numbers while honoring human readable suffixes like KiB and MB etc. Meanwhile, coreutils release 8.4 (2010-01-13) is current and stable. Bob From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 30 13:13:59 2010 Received: (at 5804) by debbugs.gnu.org; 30 Mar 2010 17:14:01 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nwf0o-0002tj-IN for submit@debbugs.gnu.org; Tue, 30 Mar 2010 13:13:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nwek0-0002bk-1V for 5804@debbugs.gnu.org; Tue, 30 Mar 2010 12:56:37 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2UGuUmr032715 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 30 Mar 2010 12:56:31 -0400 Received: from [10.11.9.90] (vpn-9-90.rdu.redhat.com [10.11.9.90]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o2UGuT45004839; Tue, 30 Mar 2010 12:56:30 -0400 Message-ID: <4BB22CE7.3030303@redhat.com> Date: Tue, 30 Mar 2010 10:55:03 -0600 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Lightning/1.0b1 Thunderbird/3.0.3 MIME-Version: 1.0 To: Phil Dumont Subject: Re: bug#5804: sort --human References: <4164007.19851269962045007.JavaMail.root@zimbra.solidstatescientific.com> In-Reply-To: <4164007.19851269962045007.JavaMail.root@zimbra.solidstatescientific.com> X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig8A56496A66D7D56410461599" X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-Spam-Score: -8.0 (--------) X-Debbugs-Envelope-To: 5804 X-Mailman-Approved-At: Tue, 30 Mar 2010 13:13:57 -0400 Cc: 5804@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -9.3 (---------) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8A56496A66D7D56410461599 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 03/30/2010 09:14 AM, Phil Dumont wrote: > It sure would be nice if the sort command had a --human option: >=20 > du -s --human * | sort --human It does, as of coreutils 7.5. Are you running something older? --=20 Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enig8A56496A66D7D56410461599 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iEYEARECAAYFAkuyLPgACgkQ84KuGfSFAYBpDwCeMbPAX5saq/uOJf99dUqSZOEx QLEAnjYZeOZ27CGbFznI3+m3jifa9/u/ =4SCc -----END PGP SIGNATURE----- --------------enig8A56496A66D7D56410461599-- From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 30 13:14:01 2010 Received: (at 5804) by debbugs.gnu.org; 30 Mar 2010 17:14:01 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nwf0p-0002tl-TW for submit@debbugs.gnu.org; Tue, 30 Mar 2010 13:14:00 -0400 Received: from mail-gw0-f44.google.com ([74.125.83.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nwevd-0002hi-5P for 5804@debbugs.gnu.org; Tue, 30 Mar 2010 13:08:37 -0400 Received: by gwj23 with SMTP id 23so3936645gwj.3 for <5804@debbugs.gnu.org>; Tue, 30 Mar 2010 10:08:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=tcKYqvI8djHLWY2wymjYQzzNjViga3EtvwXkafQ7EwI=; b=JMQD8rcbe7Z1vtDicBYpS627f+4pE3l4Uy0Yb9HCaIKytdi2VpcwzpPa3ZDU15fnco vDdxoAhKES8+froX1AOKQvjClHCS9mDtk7paRSxcHPEpbUdTPJberlmsskXRE7BRSfZb OdHS5vUs3YXwXcPKpKBuc7LFZ7T0sJFT1rK9I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=my5TDou8sn4G83nKEuvgWCss5nEJFGHM2FUrXe7pBhJuTgRBa4OWoYwqh2yEdOyWGP /kXmUXanQiwvGjI/uD1V78vZl8GiEuYRx4ijglKJ+C+Ik9FMbq7BwcO3VimF56DZ/KNm 1gIMu6ulxG6MF3Ixx4LyF058djffU/w7HTuq8= MIME-Version: 1.0 Received: by 10.100.142.18 with HTTP; Tue, 30 Mar 2010 10:08:30 -0700 (PDT) In-Reply-To: <4164007.19851269962045007.JavaMail.root@zimbra.solidstatescientific.com> References: <4164007.19851269962045007.JavaMail.root@zimbra.solidstatescientific.com> Date: Tue, 30 Mar 2010 10:08:30 -0700 Received: by 10.100.243.36 with SMTP id q36mr3515416anh.68.1269968910707; Tue, 30 Mar 2010 10:08:30 -0700 (PDT) Message-ID: Subject: Re: bug#5804: sort --human From: glen lenker To: Phil Dumont Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 5804 X-Mailman-Approved-At: Tue, 30 Mar 2010 13:13:57 -0400 Cc: 5804@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Hi Phil, Is this what you want? http://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=3D159faba1376ffd5= a46fe4bbc780d85dd3e502cea On Tue, Mar 30, 2010 at 8:14 AM, Phil Dumont wrote: > It sure would be nice if the sort command had a --human option: > > =A0du -s --human * | sort --human > > phil > > > > > > --=20 Glen Lenker From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 30 13:14:01 2010 Received: (at 5804) by debbugs.gnu.org; 30 Mar 2010 17:14:01 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nwf0q-0002tr-De for submit@debbugs.gnu.org; Tue, 30 Mar 2010 13:14:00 -0400 Received: from joe.mail.tiscali.it ([213.205.33.54]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwezS-0002s8-42 for 5804@debbugs.gnu.org; Tue, 30 Mar 2010 13:12:35 -0400 Received: from master.homenet (84.223.201.28) by joe.mail.tiscali.it (8.0.031) id 4B94E61700DBD511; Tue, 30 Mar 2010 19:12:27 +0200 Received: from gscrivano by master.homenet with local (Exim 4.71) (envelope-from ) id 1Nwf0A-00013h-G8; Tue, 30 Mar 2010 19:13:18 +0200 From: Giuseppe Scrivano To: Phil Dumont Subject: Re: bug#5804: sort --human References: <4164007.19851269962045007.JavaMail.root@zimbra.solidstatescientific.com> Date: Tue, 30 Mar 2010 19:13:18 +0200 In-Reply-To: <4164007.19851269962045007.JavaMail.root@zimbra.solidstatescientific.com> (Phil Dumont's message of "Tue, 30 Mar 2010 11:14:05 -0400 (EDT)") Message-ID: <87sk7h4tsh.fsf@master.homenet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 5804 X-Mailman-Approved-At: Tue, 30 Mar 2010 13:13:57 -0400 Cc: 5804@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) sort supports --human-numeric-sort since coreutils 7.5. Cheers, Giuseppe Phil Dumont writes: > It sure would be nice if the sort command had a --human option: > > du -s --human * | sort --human > > phil From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 30 13:50:11 2010 Received: (at 5804) by debbugs.gnu.org; 30 Mar 2010 17:50:11 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwfZq-0003fO-8y for submit@debbugs.gnu.org; Tue, 30 Mar 2010 13:50:11 -0400 Received: from feynman.spatium.org ([62.44.4.60]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwfS9-000363-4U for 5804@debbugs.gnu.org; Tue, 30 Mar 2010 13:42:13 -0400 Received: by feynman.spatium.org (Postfix, from userid 500) id 03687D8D6C; Tue, 30 Mar 2010 19:42:06 +0200 (CEST) Date: Tue, 30 Mar 2010 19:42:06 +0200 From: Michal Svoboda To: 5804@debbugs.gnu.org, Bob Proulx Subject: Re: bug#5804: sort --human Message-ID: <20100330174206.GP2637@feynman.spatium.org> References: <4164007.19851269962045007.JavaMail.root@zimbra.solidstatescientific.com> <20100330170406.GA17531@dementia.proulx.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20100330170406.GA17531@dementia.proulx.com> User-Agent: Mutt/1.4.2.3i X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 5804 X-Mailman-Approved-At: Tue, 30 Mar 2010 13:50:09 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.7 (-) Bob Proulx wrote 704 bytes: > ** New features > sort accepts a new option, --human-numeric-sort (-h): sort numbers > while honoring human readable suffixes like KiB and MB etc. Interesting. So does it sort correctly 1 MB < 1000 KiB < 1 MiB ? From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 30 19:26:10 2010 Received: (at submit) by debbugs.gnu.org; 30 Mar 2010 23:26:10 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nwkoz-0000oA-Vh for submit@debbugs.gnu.org; Tue, 30 Mar 2010 19:26:10 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nwkmg-0000mv-8k for submit@debbugs.gnu.org; Tue, 30 Mar 2010 19:23:46 -0400 Received: from lists.gnu.org ([199.232.76.165]:54149) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nwkmc-0006kp-5K for submit@debbugs.gnu.org; Tue, 30 Mar 2010 19:23:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nwkmb-0002LB-ON for bug-coreutils@gnu.org; Tue, 30 Mar 2010 19:23:41 -0400 Received: from [140.186.70.92] (port=51141 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NwkmZ-0002Jf-Lj for bug-coreutils@gnu.org; Tue, 30 Mar 2010 19:23:40 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.4 required=5.0 tests=BAYES_00,RCVD_IN_PBL, RCVD_IN_SORBS_DUL, RDNS_DYNAMIC, TO_NO_BRKTS_DYNIP autolearn=no version=3.3.0 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NwkmY-0005t4-F1 for bug-coreutils@gnu.org; Tue, 30 Mar 2010 19:23:39 -0400 Received: from c-24-23-18-135.hsd1.ca.comcast.net ([24.23.18.135]:37427 helo=frankenstaen.haell.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NwkmY-0005su-28 for bug-coreutils@gnu.org; Tue, 30 Mar 2010 19:23:38 -0400 Received: by frankenstaen.haell.com (Postfix, from userid 1000) id 866CCBEE93; Tue, 30 Mar 2010 15:46:54 -0700 (PDT) Date: Tue, 30 Mar 2010 15:46:54 -0700 From: Drake Wyrm To: bug-coreutils@gnu.org Subject: Re: bug#5804: sort --human Message-ID: <20100330224654.GA1306@frankenstaen> Mail-Followup-To: bug-coreutils@gnu.org References: <4164007.19851269962045007.JavaMail.root@zimbra.solidstatescientific.com> <20100330170406.GA17531@dementia.proulx.com> <20100330174206.GP2637@feynman.spatium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100330174206.GP2637@feynman.spatium.org> X-Fortune: You will be successful in love. User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 30 Mar 2010 19:26:08 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.3 (-----) Michal Svoboda wrote: > Bob Proulx wrote 704 bytes: > > ** New features > > sort accepts a new option, --human-numeric-sort (-h): sort numbers > > while honoring human readable suffixes like KiB and MB etc. > > Interesting. So does it sort correctly 1 MB < 1000 KiB < 1 MiB ? $ { echo 1MB; echo 1000KiB; echo 1MiB; } | sort -h sort: both SI and IEC prefixes present on units That would be a no to the "sort" part, but perhaps a yes to the "correctly" part. $ { echo 1001KiB; echo 1000KiB; echo 1MiB; } | sort -h 1000KiB 1001KiB 1MiB $ { echo 1001KB; echo 1000KB; echo 1MB; } | sort -h 1000KB 1001KB 1MB Seems to work fine when you give it just one type of unit to handle. -- I have a firm grip on reality. Now I can strangle it. -- Gordon Paynter From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 31 12:29:51 2010 Received: (at submit) by debbugs.gnu.org; 31 Mar 2010 16:29:52 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nx0nf-0007ez-JI for submit@debbugs.gnu.org; Wed, 31 Mar 2010 12:29:51 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nx0nd-0007ea-Uc for submit@debbugs.gnu.org; Wed, 31 Mar 2010 12:29:50 -0400 Received: from lists.gnu.org ([199.232.76.165]:59420) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nx0nZ-0003IN-Hw for submit@debbugs.gnu.org; Wed, 31 Mar 2010 12:29:45 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nx0nY-0004m9-MJ for bug-coreutils@gnu.org; Wed, 31 Mar 2010 12:29:44 -0400 Received: from [140.186.70.92] (port=41878 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nx0nW-0004kk-36 for bug-coreutils@gnu.org; Wed, 31 Mar 2010 12:29:43 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.0 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nx0nU-0002NK-Nz for bug-coreutils@gnu.org; Wed, 31 Mar 2010 12:29:41 -0400 Received: from feynman.spatium.org ([62.44.4.60]:33497) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nx0nU-0001xf-Gh for bug-coreutils@gnu.org; Wed, 31 Mar 2010 12:29:40 -0400 Received: by feynman.spatium.org (Postfix, from userid 500) id 78AAED8D6C; Wed, 31 Mar 2010 18:28:07 +0200 (CEST) Date: Wed, 31 Mar 2010 18:28:07 +0200 From: Michal Svoboda To: bug-coreutils@gnu.org Subject: Re: bug#5804: sort --human Message-ID: <20100331162807.GQ2637@feynman.spatium.org> Mail-Followup-To: bug-coreutils@gnu.org References: <4164007.19851269962045007.JavaMail.root@zimbra.solidstatescientific.com> <20100330170406.GA17531@dementia.proulx.com> <20100330174206.GP2637@feynman.spatium.org> <20100330224654.GA1306@frankenstaen> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20100330224654.GA1306@frankenstaen> User-Agent: Mutt/1.4.2.3i X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) Drake Wyrm wrote 796 bytes: > Michal Svoboda wrote: > > Bob Proulx wrote 704 bytes: > > > ** New features > > > sort accepts a new option, --human-numeric-sort (-h): sort numbers > > > while honoring human readable suffixes like KiB and MB etc. > > > > Interesting. So does it sort correctly 1 MB < 1000 KiB < 1 MiB ? > > $ { echo 1MB; echo 1000KiB; echo 1MiB; } | sort -h > sort: both SI and IEC prefixes present on units > > That would be a no to the "sort" part, but perhaps a yes to the > "correctly" part. Ah, this is obviously some strange use of the word *correctly* that I wasn't previously aware of. Michal Svoboda From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 01 02:11:13 2010 Received: (at submit) by debbugs.gnu.org; 1 Apr 2010 06:11:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxDcX-0000BG-Jc for submit@debbugs.gnu.org; Thu, 01 Apr 2010 02:11:13 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxDcV-0000BB-EA for submit@debbugs.gnu.org; Thu, 01 Apr 2010 02:11:12 -0400 Received: from lists.gnu.org ([199.232.76.165]:55375) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NxDcS-0004NY-3O for submit@debbugs.gnu.org; Thu, 01 Apr 2010 02:11:08 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NxDcR-0003Qp-KK for bug-coreutils@gnu.org; Thu, 01 Apr 2010 02:11:07 -0400 Received: from [140.186.70.92] (port=45100 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxDcO-0003PO-8G for bug-coreutils@gnu.org; Thu, 01 Apr 2010 02:11:05 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.0 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NxDcM-0008I4-GW for bug-coreutils@gnu.org; Thu, 01 Apr 2010 02:11:03 -0400 Received: from smtp3-g21.free.fr ([212.27.42.3]:40185) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxDcL-0008Hf-T9 for bug-coreutils@gnu.org; Thu, 01 Apr 2010 02:11:02 -0400 Received: from smtp3-g21.free.fr (localhost [127.0.0.1]) by smtp3-g21.free.fr (Postfix) with ESMTP id B7F6B81811C for ; Thu, 1 Apr 2010 08:10:57 +0200 (CEST) Received: from mx.meyering.net (mx.meyering.net [82.230.74.64]) by smtp3-g21.free.fr (Postfix) with ESMTP id 9850D8180E0 for ; Thu, 1 Apr 2010 08:10:54 +0200 (CEST) Received: by rho.meyering.net (Acme Bit-Twister, from userid 1000) id 77FD2E42; Thu, 1 Apr 2010 08:10:54 +0200 (CEST) From: Jim Meyering To: bug-coreutils@gnu.org Subject: Re: bug#5804: sort --human In-Reply-To: <20100331162807.GQ2637@feynman.spatium.org> (Michal Svoboda's message of "Wed, 31 Mar 2010 18:28:07 +0200") References: <4164007.19851269962045007.JavaMail.root@zimbra.solidstatescientific.com> <20100330170406.GA17531@dementia.proulx.com> <20100330174206.GP2637@feynman.spatium.org> <20100330224654.GA1306@frankenstaen> <20100331162807.GQ2637@feynman.spatium.org> Date: Thu, 01 Apr 2010 08:10:54 +0200 Message-ID: <87r5mzhfdd.fsf@meyering.net> Lines: 31 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -3.7 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) Michal Svoboda wrote: > Drake Wyrm wrote 796 bytes: >> Michal Svoboda wrote: >> > Bob Proulx wrote 704 bytes: >> > > ** New features >> > > sort accepts a new option, --human-numeric-sort (-h): sort numbers >> > > while honoring human readable suffixes like KiB and MB etc. >> > >> > Interesting. So does it sort correctly 1 MB < 1000 KiB < 1 MiB ? >> >> $ { echo 1MB; echo 1000KiB; echo 1MiB; } | sort -h >> sort: both SI and IEC prefixes present on units >> >> That would be a no to the "sort" part, but perhaps a yes to the >> "correctly" part. > > Ah, this is obviously some strange use of the word *correctly* that > I wasn't previously aware of. ;-) Perhaps he meant that it works as documented: `-h' `--human-numeric-sort' `--sort=human-numeric' Sort numerically, as per the `--numeric-sort' option below, and in addition handle IEC or SI suffixes like MiB, MB etc (*note Block size::). Note a mixture of IEC and SI suffixes is not supported and will be flagged as an error. Also the numbers must be abbreviated uniformly. I.E. values with different precisions like 6000K and 5M will be sorted incorrectly. From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 01 13:32:33 2010 Received: (at submit) by debbugs.gnu.org; 1 Apr 2010 17:32:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxOFs-0005vc-Oh for submit@debbugs.gnu.org; Thu, 01 Apr 2010 13:32:32 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxOFq-0005vW-Um for submit@debbugs.gnu.org; Thu, 01 Apr 2010 13:32:31 -0400 Received: from lists.gnu.org ([199.232.76.165]:57049) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NxOFm-0004l1-EG for submit@debbugs.gnu.org; Thu, 01 Apr 2010 13:32:26 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NxOFl-0005wT-Ly for bug-coreutils@gnu.org; Thu, 01 Apr 2010 13:32:25 -0400 Received: from [140.186.70.92] (port=54546 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxOFj-0005wK-9V for bug-coreutils@gnu.org; Thu, 01 Apr 2010 13:32:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.0 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NxOFh-00028G-Vu for bug-coreutils@gnu.org; Thu, 01 Apr 2010 13:32:23 -0400 Received: from feynman.spatium.org ([62.44.4.60]:51547) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxOFh-00027w-Oe for bug-coreutils@gnu.org; Thu, 01 Apr 2010 13:32:21 -0400 Received: by feynman.spatium.org (Postfix, from userid 500) id 4F5E1D8D6C; Thu, 1 Apr 2010 19:32:18 +0200 (CEST) Date: Thu, 1 Apr 2010 19:32:18 +0200 From: Michal Svoboda To: bug-coreutils@gnu.org Subject: Re: bug#5804: sort --human Message-ID: <20100401173218.GR2637@feynman.spatium.org> Mail-Followup-To: bug-coreutils@gnu.org References: <4164007.19851269962045007.JavaMail.root@zimbra.solidstatescientific.com> <20100330170406.GA17531@dementia.proulx.com> <20100330174206.GP2637@feynman.spatium.org> <20100330224654.GA1306@frankenstaen> <20100331162807.GQ2637@feynman.spatium.org> <87r5mzhfdd.fsf@meyering.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87r5mzhfdd.fsf@meyering.net> User-Agent: Mutt/1.4.2.3i X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.4 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.6 (-----) Jim Meyering wrote 1206 bytes: > ;-) > Perhaps he meant that it works as documented: > > `-h' > `--human-numeric-sort' > `--sort=human-numeric' > Sort numerically, as per the `--numeric-sort' option below, and in > addition handle IEC or SI suffixes like MiB, MB etc (*note Block > size::). Note a mixture of IEC and SI suffixes is not supported > and will be flagged as an error. Also the numbers must be > abbreviated uniformly. I.E. values with different precisions like > 6000K and 5M will be sorted incorrectly. I see, I wasn't aware of the "Note". In that case, it is suitably described as "this will sort whatever the other coreutils give you when you use -h". Michal Svoboda From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 03 16:03:13 2010 Received: (at control) by debbugs.gnu.org; 3 Apr 2010 20:03:13 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ny9Ym-0005dz-Qf for submit@debbugs.gnu.org; Sat, 03 Apr 2010 16:03:12 -0400 Received: from joseki.proulx.com ([216.17.153.58]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ny9Yl-0005du-CC for control@debbugs.gnu.org; Sat, 03 Apr 2010 16:03:11 -0400 Received: from dementia.proulx.com (dementia.proulx.com [192.168.230.115]) by joseki.proulx.com (Postfix) with ESMTP id EE0FC213FC for ; Sat, 3 Apr 2010 14:03:06 -0600 (MDT) Received: by dementia.proulx.com (Postfix, from userid 1000) id E7D7A3CC204; Sat, 3 Apr 2010 14:03:06 -0600 (MDT) Date: Sat, 3 Apr 2010 14:03:06 -0600 From: Bob Proulx To: control@debbugs.gnu.org Subject: categorize as wishlist Message-ID: <20100403200306.GA7386@dementia.proulx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.1 (---) severity 5804 wishlist thanks From unknown Thu Jun 19 14:05:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 02 May 2010 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator