Disk Usage Statics Shell
Join the DZone community and get the full member experience.Join For Free
// description of your code here
dirs=`ls` for dir in $dirs do if [ -d $dir ] then size=`cd $dir;du -sh` echo "$dir $size" fi done
Opinions expressed by DZone contributors are their own.