Article View: comp.sys.next.misc
Article #984Re: A "tree" command?
From: Thomas Aaron Insel
Date: Tue, 11 Aug 1992 18:47
Date: Tue, 11 Aug 1992 18:47
21 lines
1487 bytes
1487 bytes
shulick@yankton.ucs.indiana.edu (Sam Hulick) writes: > I'm looking for an MS-DOS-like "tree" command that will show all the > directories and files in a graphical representation. Is there a UNIX command > that will do this, or is there a 'Tree.app' or something of the like that is > NeXT-specific and has a better display? Either is fine. Thanks. If you want to see just a `branch' of the tree, try the file browser. If you want to see the entire tree, try this shell script (I don't know who the original author is.) It takes one argument, a directory. #!/bin/sh echo $1; find $1 -type d -print | tr / \\1 | sort -f | tr \\1 / |\ sed -e s,\^$1,, -e /\^$/d -e "s,[^/]*/\\([^/]*\\)\$, \`-----\\1," -e "s,[^/]*/, | ,g" -- Thomas Aaron Insel (tinsel@uiuc.edu) I speak for myself, and not for the State or University of Illinois. "We must not confuse dissent with disloyalty." -- Edward R. Murrow
Technical Details
Message-ID:
<Bsu1JJ.66z@news.cso.uiuc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!swrinde!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!tai50080References:
<BssECp.6LM@usenet.ucs.indiana.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!swrinde!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!tai50080
From: tinsel@uiuc.edu (Thomas Aaron Insel)
Newsgroups: comp.sys.next.misc
Subject: Re: A "tree" command?
Message-ID: <Bsu1JJ.66z@news.cso.uiuc.edu>
Date: 11 Aug 92 18:47:42 GMT
References: <BssECp.6LM@usenet.ucs.indiana.edu>
Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
Reply-To: tinsel@uiuc.edu
Organization: {not speaking for the} University of Illinois at Urbana
Lines: 21
Originator: tai50080@uxa.cso.uiuc.edu