![]() |
|
Welcome to the Monastery | |
PerlMonks |
Re: Unix disk space reportsby salvadors (Pilgrim) |
on Dec 31, 2000 at 02:56 UTC ( #49030=note: print w/replies, xml ) | Need Help?? |
This seems much too complicated for my liking.
I really don't like the way it needs to create a temporary file, and that it writes it output out to a fixed file, rather than STDOUT, thus letting me redirect it, or play with it in some other way. I'd go for something more along the lines of: Then I'd call it as: perl ~/dfk hosts/* > report Playing with the format of the output is then trivial. If you really want to be able to view the intermediate 'space' file, then you could add a command line parameter for it (including the name of the output file?). Tony
In Section
Cool Uses for Perl
|
|