'tree' utility

Hi all

Can you say me where to find the tree utility (to print subdir contents)
for qnxrtp?

Tanx to all

/------------------------------------------------------------

  • Davide Ancri - Prisma Engineering
  • & email = davidea at prisma dash eng dot it
    ------------------------------------------------------------/

Davide Ancri <no.more.spam@nowhere.org> wrote:

Hi all

Can you say me where to find the tree utility (to print subdir contents)
for qnxrtp?

Sure, right here:

find . -type f -ls

:slight_smile:

Cheers,
-RK


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.

Davide Ancri <no.more.spam@nowhere.org> ïèøåò â
ñîîáùåíèè:3C63C434.7B778183@nowhere.org

Hi all

Can you say me where to find the tree utility (to print subdir contents)
for qnxrtp?

ls -lR /
?

http://mama.indstate.edu/users/ice/tree/

I’d be willing to bet that it compiles right out of the box…any takers?

Kris
“Davide Ancri” <no.more.spam@nowhere.org> wrote in message
news:3C63F61D.A22315EC@nowhere.org

Robert Krten wrote:

Can you say me where to find the tree utility (to print subdir
contents)
for qnxrtp?

Sure, right here:

find . -type f -ls

Of course it works, but the result is not as clear as would be with the
tree utility I use under Linux…

/------------------------------------------------------------

  • Davide Ancri - Prisma Engineering
  • & email = davidea at prisma dash eng dot it
    ------------------------------------------------------------/

Kris Warkentin <kewarken@qnx.com> wrote:

http://mama.indstate.edu/users/ice/tree/

didn’t know ‘tree’ was actually written by my buddy Steve (aka ‘ice’).
He’s been the sysadm for ‘mama’ for 10 years. time flies, still
remember we were in dr. ge’s C programming class.
frank

I’d be willing to bet that it compiles right out of the box…any takers?

Kris
“Davide Ancri” <> no.more.spam@nowhere.org> > wrote in message
news:> 3C63F61D.A22315EC@nowhere.org> …
Robert Krten wrote:

Can you say me where to find the tree utility (to print subdir
contents)
for qnxrtp?

Sure, right here:

find . -type f -ls

Of course it works, but the result is not as clear as would be with the
tree utility I use under Linux…

/------------------------------------------------------------

  • Davide Ancri - Prisma Engineering
  • & email = davidea at prisma dash eng dot it
    ------------------------------------------------------------/

My public key can be found at
http://mama.indstate.edu/users/liug/key.txt

Try this:
###begin tree.sh
depth=0

recurse_tree() {
for file in * ; do
if [ -d $file ] ; then
i=0
while [ $i -lt $depth ] ; do
echo -n " "
i=$(($i+1))
done
echo $file
depth=$(($depth+1))
cd $file
recurse_tree
cd …
depth=$(($depth-1))
fi
done
}
recurse_tree
####end tree.sh

Cheers,

Kris

“Artem” <dpartemua@atlantis.dp.ua> wrote in message
news:a40prm$nfu$1@inn.qnx.com

Davide Ancri <> no.more.spam@nowhere.org> > ïèøåò â
ñîîáùåíèè:> 3C63C434.7B778183@nowhere.org> …
Hi all

Can you say me where to find the tree utility (to print subdir contents)
for qnxrtp?

ls -lR /
?

Robert Krten wrote:

Can you say me where to find the tree utility (to print subdir contents)
for qnxrtp?

Sure, right here:

find . -type f -ls

Of course it works, but the result is not as clear as would be with the
tree utility I use under Linux…

/------------------------------------------------------------

  • Davide Ancri - Prisma Engineering
  • & email = davidea at prisma dash eng dot it
    ------------------------------------------------------------/

Kris Warkentin wrote:

http://mama.indstate.edu/users/ice/tree/

I’d be willing to bet that it compiles right out of the box…any takers?

Thanx Kris!

… and here’s the already-compiled, easy-to-use binary for all the
newsgroup!

/------------------------------------------------------------

  • Davide Ancri - Prisma Engineering
  • & email = davidea at prisma dash eng dot it
    ------------------------------------------------------------/