|
发表于 2005-1-24 17:18:06
|
显示全部楼层
和tree类似的东东
#!/usr/bin/ksh
dir=${1:-.}
(cd $dir;pwd)
#du $dir| awk '{print $2, "== ("$1/2"kb)"}' |sort -f| \
# sed -e "s,[^ /]*/\([^ /]*\) ==,|--\1," -e "s,[^ /]*/,| ,g"
du $dir| awk '{print $2, "== ("$1/2"kb)"}' |sort -f| \
sed -e "s,[^ /]*/\([^ /]*\) ==,|--\1," -e "s,[^ /]*/,\ ,g"
#The End
忘记从哪cp过来了,见凉,觉得好用,共同分享 |
|