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
9 # I believe that the original author is Brian S. Hiles <bsh29256@atc.fhda.edu>
13 echo "vtree: usage: vtree [-a] [dir]" >&2
26 export BLOCKSIZE
=1k
# 4.4 BSD systems need this
32 cd "$1" ||
{ shift; [ $# -ge 1 ] && echo >&2; continue; }
35 du
$andfiles |
sort -k 2f |
sed \
36 -e 's/\([^ ]*\) \(.*\)/\2 (\1)/' \
38 -e 's#[^/]*/\([^/]*\)$#|____\1#' \