From: Bill.Saunders@launchpad.unc.edu (Bill Saunders) Subject: Visual directory tree script Date: 21 Nov 1992 21:34:51 GMT
Hello,
Was reading a really old copy of UnixWorld last night and came
across this script for displaying a directory tree-
(cd $1; pwd)
find $1 -type d -print | sort -f |
sed -e "s, ^$1,," -e "/^$/d" -e \
"s,[^/]*/\([^/]*\)$,\'-----\1," -e "s,[^/]*/, | ,g"
This came from the Nov. 1990, UnixWorld Magazine page 164
to run it put these lines in a file, change the attributes(chmod +xxx
filename), and type filename <directory> | more.
Bill Saunders
bills@outlaw.uwyo.edu