Last active
June 7, 2021 16:41
-
-
Save mathew-fleisch/931ee333cecccc54717b92908bcdb3b0 to your computer and use it in GitHub Desktop.
Revisions
-
mathew-fleisch revised this gist
Jun 7, 2021 . 1 changed file with 6 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,12 @@ get_dirs() { dir=$(realpath $1) for d in $dir/*/; do if [[ -d $d ]]; then du -sh $d get_dirs $d fi done } get_dirs $1 -
mathew-fleisch created this gist
Jun 7, 2021 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ #!/bin/bash get_dirs() { dir=$(realpath $1) for d in $dir/*/; do if [[ -d $d ]]; then du -sh $d; get_dirs $d; fi; done } get_dirs $1