home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / linux / 17481 < prev    next >
Encoding:
Text File  |  1992-11-21  |  1.2 KB  |  30 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!uvaarpa!concert!samba!usenet
  3. From: Bill.Saunders@launchpad.unc.edu (Bill Saunders)
  4. Subject: Visual directory tree script
  5. Message-ID: <1992Nov21.213451.23636@samba.oit.unc.edu>
  6. Sender: usenet@samba.oit.unc.edu
  7. Nntp-Posting-Host: lambada.oit.unc.edu
  8. Organization: University of North Carolina Extended Bulletin Board Service
  9. Date: Sat, 21 Nov 1992 21:34:51 GMT
  10. Lines: 18
  11.  
  12. Hello,
  13.     Was reading a really old copy of UnixWorld last night and came
  14. across this script for displaying a directory tree-
  15.     (cd $1; pwd)
  16.     find $1 -type d -print | sort -f |
  17.     sed -e "s, ^$1,," -e "/^$/d" -e \
  18.     "s,[^/]*/\([^/]*\)$,\'-----\1," -e "s,[^/]*/,  |     ,g"
  19. This came from the Nov. 1990, UnixWorld Magazine page 164
  20. to run it put these lines in a file, change the attributes(chmod +xxx
  21. filename), and type filename <directory> | more.
  22.                         Bill Saunders
  23.                         bills@outlaw.uwyo.edu
  24.  
  25. --
  26.    The opinions expressed are not necessarily those of the University of
  27.      North Carolina at Chapel Hill, the Campus Office for Information
  28.         Technology, or the Experimental Bulletin Board Service.
  29.            internet:  laUNChpad.unc.edu or 152.2.22.80
  30.