[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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