|
|
Is there any tool/command to list directory and files as tree view?
I remember there is tool to list the directory
as tree view for clear reference..... But forget
the name.
+dir1 ----
+sub-dir1----a.c
|
|
0
|
|
|
|
Reply
|
wavelet
|
10/14/2005 8:35:58 AM |
|
wavelet wrote:
> I remember there is tool to list the directory
> as tree view for clear reference..... But forget
> the name.
>
> +dir1 ----
> +sub-dir1----a.c
command is tree, it is freeware,
or
you can use "ls */*/*" :)
|
|
0
|
|
|
|
Reply
|
darko
|
10/14/2005 9:05:03 AM
|
|
Where I can get the "free" tool: tree?
Thanks.
"darko saric" <darko.saric@MAKNIOVOsiemens.com> wrote in message
news:dinsbv$96s$1@news.siemens.at...
> wavelet wrote:
> > I remember there is tool to list the directory
> > as tree view for clear reference..... But forget
> > the name.
> >
> > +dir1 ----
> > +sub-dir1----a.c
>
> command is tree, it is freeware,
>
> or
>
> you can use "ls */*/*" :)
|
|
0
|
|
|
|
Reply
|
wavelet
|
10/14/2005 9:54:18 AM
|
|
> Where I can get the "free" tool: tree?
hmm, usually you look this stuff on
www.blastwave.com
or take a look on
www.ibiblio.org/pub/solaris/freeware/
or
http://www.sunfreeware.com/
I did find before lots of good stuff there, but I never look for command
tree (I know this command from linux, but I think that must be there)
|
|
0
|
|
|
|
Reply
|
darko
|
10/14/2005 10:21:46 AM
|
|
wavelet wrote:
> I remember there is tool to list the directory
> as tree view for clear reference..... But forget
> the name.
>
> +dir1 ----
> +sub-dir1----a.c
posted on this newsgroup sometime ago, modify as you need
e.g to show only dirs add the appropriate option to "find"
#!/bin/sh
dir=$1
if [ -z "$dir" ]; then
dir="."
fi
find "$dir" -print 2> /dev/null | \
sed -e 's/[^\/]*\//|--- /g' -e 's/--- |/ |/g'
|
|
0
|
|
|
|
Reply
|
Oscar
|
10/14/2005 12:17:33 PM
|
|
In article <dinqll$c2p@netnews.net.lucent.com>,
"wavelet" <liuxb@lucent.com> writes:
> I remember there is tool to list the directory
> as tree view for clear reference..... But forget
> the name.
>
> +dir1 ----
> +sub-dir1----a.c
find(1) is quite close...
find .
--
Andrew Gabriel
|
|
0
|
|
|
|
Reply
|
andrew
|
10/14/2005 10:34:59 PM
|
|
Andrew Gabriel wrote:
> In article <dinqll$c2p@netnews.net.lucent.com>,
> "wavelet" <liuxb@lucent.com> writes:
>
>>I remember there is tool to list the directory
>>as tree view for clear reference..... But forget
>>the name.
>>
>>+dir1 ----
>> +sub-dir1----a.c
>
>
> find(1) is quite close...
> find .
Or this:
find . -print | sed -e 's:\([^/]*/\): :g'
Or this (in Bourne and Bourne-style shells):
tree ()
{
find "$@" -print | sed -e 's:\([^/]*/\): :g'
}
It could probably be improved to add some clever ASCII characters
to make more of a tree shape if desired.
- Logan
|
|
0
|
|
|
|
Reply
|
Logan
|
10/14/2005 11:08:32 PM
|
|
Thanks a lot! It's really cool!
"Oscar del Rio" <delrio@mie.utoronto.ca> wrote in message
news:dio7kt$c3d$1@news.mie...
> wavelet wrote:
> > I remember there is tool to list the directory
> > as tree view for clear reference..... But forget
> > the name.
> >
> > +dir1 ----
> > +sub-dir1----a.c
>
> posted on this newsgroup sometime ago, modify as you need
> e.g to show only dirs add the appropriate option to "find"
>
> #!/bin/sh
> dir=$1
> if [ -z "$dir" ]; then
> dir="."
> fi
> find "$dir" -print 2> /dev/null | \
> sed -e 's/[^\/]*\//|--- /g' -e 's/--- |/ |/g'
|
|
0
|
|
|
|
Reply
|
wavelet
|
10/15/2005 6:43:27 AM
|
|
|
7 Replies
576 Views
(page loaded in 0.111 seconds)
|
|
|
|
|
|
|
|
|