Barbara,

You might try tossing the following snippet in a shell script. I call it
dtree and you can pass a parameter of a directory.
=== snip
 D=${1:-`pwd`}
 (cd $D; pwd)
 find $D -type d -print | sort |
 sed -e "s,^$D,,"\
     -e "/^$/d"\
     -e "s,[^/]*/\([^/]*\)$,\:-----\1,"\
     -e "s,[^/]*/,:     ,g"

== snip

... Output looks like 
:-----somedir1
:     :-----somedir2
:     :-----somedir3
:     :-----somedir4
:-----somedir2
:-----somedir3
:-----somedir4
:     :-----somedir1
:     :     :-----somedir2
:     :     :-----somedir3
:     :     :-----somedir4
:     :-----somedir2
:     :-----somedir3

-----Original Message-----
Sent: Tuesday, December 23, 2003 9:49 AM
To: Multiple recipients of list ORACLE-L


Hi, listers.
As documentation for a project, I would like to
display some unix directories in hierarchical format
and add the output to the documentation set.
(Solaris 9)

Either flowchart-like or explorer-like will do.  Sorta
like what is shown below.  Does anyone know of a
freebie tool that will do this?  (Or is this some
fancy ls command I'm missing?)

Thanks for any help.
Barb


/dna
  /orasrv
     /1.4
        /scripts
     /1.7
        /scripts
  /logs


__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Barbara Baker
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the
message BODY, include a line containing: UNSUB ORACLE-L (or the name of
mailing list you want to be removed from).  You may also send the HELP
command for other information (like subscribing).



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Seibert, Jason
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to