Find average size of directories
This will report the average of all folders in the directory in megabytes
du -sh --block-size=1M ./*/ | gawk '{sum += $1; n++;} END {print sum/n;}'
<- OTHERS ->
This will report the average of all folders in the directory in megabytes
du -sh --block-size=1M ./*/ | gawk '{sum += $1; n++;} END {print sum/n;}'