TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:1777] directory sizes



>>>>> "Hans" == Hans Umhoefer <spudling@acm.cs.umn.edu> writes:

    >> So now you can say
    >> 
    >> du -s `ls -d */.`

    Hans> I couldn't get this one to work. However, I did find another
    Hans> command, if I understand what you want this should work.

Be sure to use back ticks: ` not '

    Hans> du -s */.

This works but there is a problem with it. You can see the difference
between this and my solution by doing

	ls */.

and 

	ls -d */.

in a directory with a lot of sub directories. How ever this does have
the nice side effect of giving you the sizes of all directories two
below the current one--something I didn't think possible w/o using
find (or something like that)

Andrew