dtree program???

dtree program???

Post by Peter DePasqual » Sun, 26 Jan 1997 04:00:00



I am looking for a program named dtree for my sys admin class.
Can anyone point me in the right direction?

Thanks.

I was told I can compile it, so I am looking for a source code
version!
--
/*************************************/
/*  Pete DePasquale-Graduate Student */
/*  Department of Computing Sciences */
/*        Villanova University       */
/*************************************/

/* http://www.voicenet.com/~pjdepasq */
/*************************************/

 
 
 

dtree program???

Post by Peter DePasqual » Wed, 29 Jan 1997 04:00:00


I am still in search of the dtree program if anyone knows anything about
it.

Thanks.


> I am looking for a program named dtree for my sys admin class.
> Can anyone point me in the right direction?

> Thanks.

> I was told I can compile it, so I am looking for a source code
> version!
> --
> /*************************************/
> /*  Pete DePasquale-Graduate Student */
> /*  Department of Computing Sciences */
> /*        Villanova University       */
> /*************************************/

> /* http://www.voicenet.com/~pjdepasq */
> /*************************************/

--
/*************************************/
/*  Pete DePasquale-Graduate Student */
/*  Department of Computing Sciences */
/*        Villanova University       */
/*************************************/

/* http://www.voicenet.com/~pjdepasq */
/*************************************/

 
 
 

dtree program???

Post by Russell Mosema » Wed, 29 Jan 1997 04:00:00



>I am still in search of the dtree program if anyone knows anything about
>it.

   Unless this is some big guessing contest and you are giving away
fabulous prizes, you might want to provide at least one or two more
clues as to what dtree is and what it does.  Alternatively, you could
ignore this message and see if anyone else out there recognizes dtree
from the meager information you have provided.
--
Russell Mosemann     Concordia College      Voice: (402) 643-7445
Computing Center     Seward, NE 68434       Fax:   (402) 643-4073
"Diplomacy is the art of letting someone else have your own way."
 
 
 

dtree program???

Post by Sam Sexto » Thu, 30 Jan 1997 04:00:00



writes

Quote:>   Unless this is some big guessing contest and you are giving away
>fabulous prizes, you might want to provide at least one or two more
>clues as to what dtree is and what it does.  Alternatively, you could
>ignore this message and see if anyone else out there recognizes dtree
>from the meager information you have provided.

It's no guessing game - what else could dtree be but this: ;-)

#!/bin/sh -
#  print listing as a tree
cd ${1:-.}
du . | awk '{print $2 " (" $1 ")"}' |\
tr '/ ' '\2\1' | sort -f | tr '\2\1' '/ ' |\
sed 's,^\.,,
     s,[^/]*/\([^/]*\)$, +-----\1,
     s,[^/]*/, |     ,g
     s,^ *([0-9]*),'`pwd`'&,'
exit

And it doesn't even need compiling!

--
Sam Sexton                                           (+44|0)1203 256562
Reuters Ltd                                            
Coventry, UK

 
 
 

dtree program???

Post by Peter DePasqual » Thu, 30 Jan 1997 04:00:00


Dree prints a text version of a directory tree in a
pseudo-graphical manner.  It was written by Dave Borman
of Cray Inc.

I have since been told, and confirmed that it can be found at:
ftp.uu.net

Directory specifics available unpon request.  I don't have them
in front of me.
--
/*************************************/
/*  Pete DePasquale-Graduate Student */
/*  Department of Computing Sciences */
/*        Villanova University       */
/*************************************/

/* http://www.voicenet.com/~pjdepasq */
/*************************************/

 
 
 

dtree program???

Post by Russell Mosema » Thu, 30 Jan 1997 04:00:00



>Dree prints a text version of a directory tree in a

   If curses is available, then you might also consider utree.  I'd
give you the pointer to a site for it, but our central system is down
at the moment for a disk replacement and I can't get to the information.
--
Russell Mosemann     Concordia College      Voice: (402) 643-7445
Computing Center     Seward, NE 68434       Fax:   (402) 643-4073
"I hesitate to articulate for fear of deviating from the path
 of rectitude."
 
 
 

dtree program???

Post by Lou Avram » Mon, 03 Feb 1997 04:00:00


Here's a shell script from good ol' UNIXWORLD magazine which does the
trick ...


Dialogic Corporation

#
# vtree
#       prints a directory's files as a visual tree
#
#       UNIXWORLD 11/90, pg. 164
#
#

(cd $1; pwd)
find $1 -print | sort |
sed -e "s,^$1,," -e " /^$/d" -e \
"s,[^/]*/\([^/]*\)$,\`-----\1," -e "s,[^/]*/, | ,g"

 
 
 

dtree program???

Post by Tim Ree » Tue, 04 Feb 1997 04:00:00


Here's a perl script that may do what you wanted.

TimR

---------------- cut here -------------------------------

#!/usr/local/bin/perl




&output($top);
exit;

sub input {




    }

        local($mysize) = ($root =~ /^(\d+)/);


    }

Quote:}

sub output {

    local($size, $path) = split(' ', $root);
    $path =~ s!/$!!;
    $path =~ s!.*/!!;
    $line = sprintf("%${width}d %s", $size, $path);
    print $prefix, $line, "\n";
    $prefix .= $line;
    $prefix =~ s/\d /| /;
    $prefix =~ s/[^|]/ /g;
    local($width) = $kid[0] =~ /(\d+)/ && length("$1");

Quote:}

sub sizesort {

    sub bynum { $index[$b] <=> $index[$a]; }


Quote:}

sub childof {


    index($pair[1], $pair[0]) >= 0;
Quote:}

 
 
 

1. Looking for program: dtree

I have a utility in my Unix bin (SunOS) called dtree that works like the
DOS 'vtree' util (not standard DOS, mind you, though I'm not sure
exactly where I got my DOS vtree - I think there is one in Norton utils
at any rate...) that I compiled a long time ago, but did not save the
source for.  It was many years ago, and I can't remember exactly where
it came from.

Anyway, I need to compile it on a new machine now, and I don't have the source.
I did an archie search (although the only archie I could get through to
at this time of the day was the one at luth.se - it may have not been
complete) and didn't find any matches to 'dtree'.

Anyone who has info (or the source!), pls let me know.

************************************************************************
Drink Coke...  (Bill Hicks - 12/16/61-2/25/94)


          hundreds, if not thousands, of dollars, every time he posts -
************************************************************************
rwvpf wpnrrj ibf ijrfer

2. Newbie: Space Left on HD!

3. FAIRCOM: Who use dtree ?

4. SunOS 2.6 (beginner from Italy)

5. dtree

6. Gneeral Q about AIX

7. Where are LSTREE or DTREE progs..NICO GARCIA OTERO?

8. S3 ViRGE Chipset under XFree86

9. Manual pages on dtree

10. "Mary had a neat program...neat program...neat program...

11. Help on programming a ping client program

12. Redirecting stdout of one program to my program

13. FTP sites with 'UNIX Network Programming' book program code?