Re: Getting the total size of a directory

2004-01-05 Thread Rus Foster
On Sun, 4 Jan 2004 [EMAIL PROTECTED] wrote: I'm running out of web space and want to write a script that tell me the size of certain directories so I can see where the hog is. Can anyone give me some quick code? A shell script might be even faster with du -s /tmp | sort -n Rus -- e:

Re: Getting the total size of a directory

2004-01-05 Thread Randal L. Schwartz
Tim == Tim Johnson [EMAIL PROTECTED] writes: Tim find(sub{ -f and ( $size += -s ) }, $dir ); Beware that -s has only a rough correlation with the actual disk a file takes. You want (stat)[12] for that. The -s number will be far too huge for holey files (blocks aren't allocated), and a little

Getting the total size of a directory

2004-01-04 Thread Motherofperls
I'm running out of web space and want to write a script that tell me the size of certain directories so I can see where the hog is. Can anyone give me some quick code?

RE: Getting the total size of a directory

2004-01-04 Thread Tim Johnson
: Getting the total size of a directory I'm running out of web space and want to write a script that tell me the size of certain directories so I can see where the hog is. Can anyone give me some quick code?

RE: Getting the total size of a directory

2004-01-04 Thread Tim Johnson
: Subject: Getting the total size of a directory I'm running out of web space and want to write a script that tell me the size of certain directories so I can see where the hog is. Can anyone give me some quick code?