bug-coreutils
[Top][All Lists]
Advanced

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

New sort(1) feature -- sort by length


From: Ethan Baldridge
Subject: New sort(1) feature -- sort by length
Date: Thu, 16 Jul 2009 17:06:21 -0400

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

Attachment: sort.diff
Description: sort.diff


reply via email to

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