bug-coreutils
[Top][All Lists]
Advanced

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

Re: feature request: sort by human-readable disk sizes


From: Pádraig Brady
Subject: Re: feature request: sort by human-readable disk sizes
Date: Tue, 25 Sep 2007 09:59:12 +0100
User-agent: Thunderbird 2.0.0.6 (X11/20070919)

Justin Watt wrote:
> It'd be great if "sort" had an option to sort by the "-h" output of
> the "du" command.
> 
> For example the current output of du is alphabetized by filename with
> no options to sort:
> 
> $ du -h --max-depth=1
> 4.0K    ./bin
> 52M     ./code
> 765M    ./Desktop
> 12K     ./mail
> 17M     ./music
> 124K    ./PDF
> 5.5G    ./photos
> 153M    ./public_html
> 652K    ./ufc
> 7.3G    .

That has been asked for many times.
Perhaps we should add it?
You might find this script useful:

http://www.pixelbeat.org/scripts/dutop





reply via email to

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