Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-14-2005, 11:13 PM   #1
LQ Newbie
Registered: Sep 2005
Posts: 2

Rep: Reputation: 0
Building the Tree command


I'm needing help for the following:

Write a program that prints out a directory tree using a for loop within a function.
The function should call itself when it encounters a directory and then work on listing the contents of that directory.
The function should accept the directory to search as a parameter.

I need to be able to do this without using ls -l -r.

Any help would be appreciated!

Thank you!
Old 09-14-2005, 11:43 PM   #2
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 122Reputation: 122
Well first off, the interesting question is this: in what language do you desire to do this?
Old 09-17-2005, 11:39 PM   #3
LQ Newbie
Registered: Sep 2005
Posts: 2

Original Poster
Rep: Reputation: 0

I'm trying to figure it out to use in bash.

Thank you.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
tree command not working mikeymo Linux - Software 4 11-23-2005 12:41 AM
linux 'tree' command scooter_sj Linux - General 2 08-30-2005 12:39 PM
I need help with a command value for building the MPlayer Plug-in for Mozilla... Ausar Linux - Newbie 2 08-01-2004 10:44 AM
the bible = the tree of the knowledge of good and evil () Jesus = the tree of life Michael111 General 2 04-14-2004 05:28 PM
Which command displays the dir tree of a HD? cbjhawks Linux - General 5 02-28-2004 01:17 AM

All times are GMT -5. The time now is 06:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration