LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

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

Rep: Reputation: 0
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!
 
Old 09-14-2005, 10:43 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

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

Original Poster
Rep: Reputation: 0
Hi,

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

Thank you.
 
  


Reply


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-22-2005 11:41 PM
linux 'tree' command scooter_sj Linux - General 2 08-30-2005 11:39 AM
I need help with a command value for building the MPlayer Plug-in for Mozilla... Ausar Linux - Newbie 2 08-01-2004 09:44 AM
the bible = the tree of the knowledge of good and evil () Jesus = the tree of life Michael111 General 2 04-14-2004 04:28 PM
Which command displays the dir tree of a HD? cbjhawks Linux - General 5 02-28-2004 12:17 AM


All times are GMT -5. The time now is 08:48 PM.

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