Re: file sizes

2001-04-13 Thread Paul Fontenot
Just one more testiment to the level of knowledge that maybe found in these support channels. Thanks to Peter the script is perfect. Thanks again. -Paul On Friday 13 April 2001 17:47, you wrote: > At 05:04 PM 4/13/01 -0700, Paul Fontenot wrote: > >Here is the actual code and output, I am allrea

Re: file sizes

2001-04-13 Thread Peter Scott
At 05:04 PM 4/13/01 -0700, Paul Fontenot wrote: >Here is the actual code and output, I am allready using system, but was >hoping for a perl only solution. Fair enough. I'll point you in the right direction, then. Up to you to read the documentation and fill in the details, okay? Since I don't

Re: file sizes

2001-04-13 Thread Paul Fontenot
Here is the actual code and output, I am allready using system, but was hoping for a perl only solution. #!/usr/bin/perl -w # # open(PASSWD, "/etc/passwd"); while () { @fields = split /:/; if ($fields[2] >= 500) { chdir $fields[5]; $disk_space = s

Re: file sizes

2001-04-13 Thread Peter Scott
At 04:02 PM 4/13/01 -0700, Paul Fontenot wrote: >Hello, > How can I get a summary of the file sizes in a directory with > perl? Like a >"du -s ." ? du walks the directory tree summing all the components in subdirectories; Perl code to do that is going to be more than a few lines. Any r

file sizes

2001-04-13 Thread Paul Fontenot
Hello, How can I get a summary of the file sizes in a directory with perl? Like a "du -s ." ? -Paul -- 4:00pm up 6:54, 3 users, load average: 1.66, 1.55, 1.47