LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 10-19-2012, 11:54 AM   #1
bobanbarnsley
LQ Newbie
 
Registered: Oct 2012
Posts: 4

Rep: Reputation: Disabled
Perl script to traverse a directory tree


Hi there, I am looking for a perl script to traverse a directory tree so that the script traverses each and very subdirectory of a directory structure.

Regards
Bob
 
Old 10-19-2012, 12:30 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,921

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by bobanbarnsley View Post
Hi there, I am looking for a perl script to traverse a directory tree so that the script traverses each and very subdirectory of a directory structure.
Ok. Now if you post what you've written/tried, and where you're stuck, we will be glad to help you. But, this is not the place to come to get your scripts written for you, without any effort on your part.

Also, your question is vague...what do you actually want to *DO* when you traverse a tree? You don't say if you want to read it, output it, search it, delete files, etc. With no details, there's little we can help you with, aside from pointing out that Google has THOUSANDS of perl scripts that read/traverse directory trees, and perform a variety of tasks.
 
Old 10-20-2012, 09:31 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
This question is part of your other thread: http://www.linuxquestions.org/questi...pt-4175432918/. Closing this thread in favour of the original one.
 
  


Closed Thread


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
Script to traverse into sub-directory and replace line of file inside zip Marshalle Linux - General 2 08-28-2010 12:38 AM
Gdb script to traverse a binary tree michelle_ Programming 1 05-12-2009 10:09 PM
Directory Traverse & Rename Script fsckin Programming 3 10-05-2008 02:43 AM
Bash script to traverse directory tree and rename files intramaweb Programming 3 10-08-2006 01:51 PM
Script tar+gzip traverse a directory gn00kie Programming 7 06-16-2006 02:52 AM


All times are GMT -5. The time now is 10:23 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration