RE: New sort(1) feature -- sort by length (original) (raw)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
From: | Ethan Baldridge |
---|---|
Subject: | RE: New sort(1) feature -- sort by length |
Date: | Thu, 16 Jul 2009 17:10:44 -0400 |
I should have mentioned that the patch is against coreutils 7.4 (from the Ubuntu repository, but they don't seem to have any custom patches).
From: Ethan Baldridge Sent: Thursday, July 16, 2009 5:06 PM To: 'address@hidden' Subject: New sort(1) feature -- sort by length
I had a list to sort at work today that needed to be in the format "A B C D E... AA BB CC DD" but sort(1) only returns results as "A AA B BB C CC".
So I wrote a patch to add -length-sort as an option. (-l was not taken as a short option so I added that too).
Here it is attached as a unified diff. I tested it and it seems to work naturally in conjunction with other operands, so I don't believe there are likely to be problems.
--Ethan Baldridge
- RE: New sort(1) feature -- sort by length,Ethan Baldridge <=
- New sort(1) feature -- sort by length, Ethan Baldridge, 2009/07/16
* Re: New sort(1) feature -- sort by length, Eric Blake, 2009/07/17
* Re: New sort(1) feature -- sort by length, Eric Blake, 2009/07/17
* RE: New sort(1) feature -- sort by length, Ethan Baldridge, 2009/07/17
* Re: New sort(1) feature -- sort by length, Pádraig Brady, 2009/07/17
* RE: New sort(1) feature -- sort by length, Ethan Baldridge, 2009/07/17
* Re: New sort(1) feature -- sort by length, Pádraig Brady, 2009/07/20
* Re: New sort(1) feature -- sort by length, Erik Auerswald, 2009/07/20
* Re: New sort(1) feature -- sort by length, Ethan Baldridge, 2009/07/23
* Re: New sort(1) feature -- sort by length, Pádraig Brady, 2009/07/23
- New sort(1) feature -- sort by length, Ethan Baldridge, 2009/07/16
- Prev by Date:ln documentation clarification
- Next by Date:New sort(1) feature -- sort by length
- Previous by thread:ln documentation clarification
- Next by thread:New sort(1) feature -- sort by length
- Index(es):