home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!uvaarpa!concert!samba!usenet
- From: Bill.Saunders@launchpad.unc.edu (Bill Saunders)
- Subject: Visual directory tree script
- Message-ID: <1992Nov21.213451.23636@samba.oit.unc.edu>
- Sender: usenet@samba.oit.unc.edu
- Nntp-Posting-Host: lambada.oit.unc.edu
- Organization: University of North Carolina Extended Bulletin Board Service
- Date: Sat, 21 Nov 1992 21:34:51 GMT
- Lines: 18
-
- 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
-
- --
- The opinions expressed are not necessarily those of the University of
- North Carolina at Chapel Hill, the Campus Office for Information
- Technology, or the Experimental Bulletin Board Service.
- internet: laUNChpad.unc.edu or 152.2.22.80
-