LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Building the Tree command (https://www.linuxquestions.org/questions/programming-9/building-the-tree-command-363480/)

rsaltivan 09-14-2005 10:13 PM

Building the Tree command
 
Hello,

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!

Matir 09-14-2005 10:43 PM

Well first off, the interesting question is this: in what language do you desire to do this?

rsaltivan 09-17-2005 10:39 PM

Hi,

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

Thank you.


All times are GMT -5. The time now is 07:27 AM.