in reply to Re: du -h, sorted
in thread du -h, sorted
Are you sure yours gets correct results? I'm getting 372K between 4.4M and 3.6M.
Caution: Contents may have been coded under pressure.
perl -e 'sub c{pop=~/[GMK]/;ord($&)&7}print sort{c($b)<=>c($a)or$b<=>$ +a}`du -h`'
Caution: Contents may have been coded under pressure.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: du -h, sorted
by grinder (Bishop) on Feb 26, 2009 at 00:17 UTC | |
by hbm (Hermit) on Feb 26, 2009 at 03:00 UTC | |
by bellaire (Hermit) on Feb 26, 2009 at 15:41 UTC | |
by hbm (Hermit) on Feb 26, 2009 at 16:28 UTC | |
by bellaire (Hermit) on Feb 26, 2009 at 19:30 UTC | |
by hbm (Hermit) on Feb 26, 2009 at 19:49 UTC | |
|
In Section
Cool Uses for Perl