查看当前目录下目录的大小

a=`pwd`;for i in `ls -l | grep ^d | awk -F" " '{print $8}'`; {  cd $a/$i; echo $i; du -sh;}

猜你喜欢

转载自lijunjie.iteye.com/blog/1187599