bug-fileutils
[Top][All Lists]
Advanced

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

Re: TR: Improvement for ls


From: Bob Proulx
Subject: Re: TR: Improvement for ls
Date: Wed, 2 Apr 2003 01:13:35 -0700
User-agent: Mutt/1.3.28i

LAFARGE Jonathan (Cetelem) wrote:

> I have a suggestion : 

Thank you for your suggestion.

> For ls, there could be an interesting option that would display the size of
> each folder in ls -l mode.
> [...]
> We could have this (with -s doing what I want) :
> drwxrwxrwx   5 user2    group1       5.5M Dec  2 16:09 CVS
> [...]
> I created a shell script that do that, using du, but it's pretty slow (see
> in attachment). I'm not competent enough to program it in the ls C code. So
> I'm just sending you this idea, hoping that someone will develop it !

This has been suggested on a number of occasions.  If you were to
search the list archives you would find previous discussions.

However, the speed will probably not be noticiably faster than your
shell script.  Summing up a directory tree has all of the same work
and time requirements as du.  Therefore it would take about the same
amount of time to run.

Bob




reply via email to

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