Can File::Find selectively search subdirs? 
Author Message
 Can File::Find selectively search subdirs?



Quote:
>I'd like to make File::Find only search one particular subdirectory
>of a lot of top-level directories...
>For example, say I want to search every user's home
>directory for a .netscape directory,
> and then find every file
>matching /^(li|)prefs.js$/ in that subdirectory.  

It seems to me that File::Find is the wrong tool here.

I would do something more like this:


          my $dir = $data[7];  # home directory

            grep -e, "$dir/.netscape/prefs.js",
                     "$dir/.netscape/liprefs.js";
        }

rd
($p{$_})&6];$p{$_}=/ ^$P/ix?$P:close$_}keys%p}p;p;p;p;p;map{$p{$_}=~/^[P.]/&&
close$_}%p;wait until$?;map{/^r/&&<$_>}%p;$_=$d[$q];sleep rand(2)if/\S/;print



Tue, 30 Sep 2003 06:27:12 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. **** HELP **** needed with a paramatized SQL QUery in Delphi 2

2. Can File::Find selectively search subdirs?

3. Searching subdirs with unknown names in known dirs.

4. HELP: Need Level2 Oracle ODBC Drivers

5. GET THIS WHILE U CAN!

6. Trying to search for files using File::Find

7. Selectively output records from delimited file?

8. Where to find native components for MS Access

9. Globbing files in dir and subdirs

10. search text file, find substring, beginner help pls.

11. Pascal Mod Player

12. Please help - Find files recursively by File::Find

 

 
Powered by phpBB® Forum Software