[Omaha.pm] du -k --max-depth 1

Jay Hannah jhannah at omnihotels.com
Tue Sep 28 18:53:14 CDT 2004


AIX bugs me. For instance

   du -k --max-depth 1

works fine on Linux, but AIX's du is stupid. So here's the Perl equivalent of "--max-depth 1":

   du -k | perl -ne 'print if (tr#/#/# == 1)'

Grin,

j





More information about the Omaha-pm mailing list