I may be responding a little late but just saw your post and no answers
posted. Maybe you have already sorted out your problem:

Here is a simple modification of your script. Put this function in
your .bashrc and use the tree command.

tree () 
{ 
    dirs=${@:-.};
    echo "Listing $dirs";
    for i in $dirs;
    do
        find $i -name \* | sed -e 's,^.$,,' \
                -e '/^$/d' \
                -e 's,[^/]*/\([^/]*\)$,+-----\1,' \
                -e 's,[^/]*/,|     ,g';
    done
}


_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to