Last active
July 23, 2016 19:30
-
-
Save danielsan/3925c9829783a91de7885022b55f432c to your computer and use it in GitHub Desktop.
sorted by directory name and re-formatted du -hd 1 (disk user human formatted --max-depth=1)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo du -hd 1|perl -e 'use Data::Dumper;my %h;while(<>){if(/([\d\.]+\w)\s*(\.\/.+)$/){$h{$2}=$1;}}; for my $k(sort(keys(%h))){printf("%4s | %s\n", $h{$k}, $k)};' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorted and Formatted version: