3 # vtree - make a tree printout of the specified directory, with disk usage
6 # usage: vtree [-a] [dir]
8 # Original posted to Usenet sometime in February, 1996
12 echo "vtree: usage: vtree [-a] [dir]" >&2
25 export BLOCKSIZE=1k # 4.4 BSD systems need this
31 cd "$1" || { shift; [ $# -ge 1 ] && echo >&2; continue; }
34 du $andfiles | sort +1f | sed \
35 's/\([^ ]*\) \(.*\)/\2 (\1)/
37 s#[^/]*/\([^/]*\)$#|____\1#