#!/bin/bash bin=/home/users/hallgren/cgi . $bin/cgistart.sh ### Horizontal Tree htree() { begin table begin caption; h4 "$1";end tr; ls -1 | while read dir ; do if [ -d "$dir" ] ; then case "$dir" in CVS|objs|junk|hi|tests) : ;; *) td; (cd "$dir"; htree "$dir") esac fi done end } ### Vertical Tree vtree() { begin table class=borderless tr; th "$2/" td begin table class=borderless tr;td;sed -n "s%^$1 \(.*\)\$%\1%p"