Well on unix you could do this with a bit of find and grep, but if you are not on unix 
or still want to do it the perlish way, you should check out the File::Find module, 
then perldoc -f open and perldoc -f grep.  Aka find the files, open each, store the 
file to an array, run a grep on the array lines, and probably increment a counter in a 
list for each of the words-> files or files-> words depending on what you want to do 
with it when you match the word in a file.

That's a start,

http://danconia.org

------------------------------------------------
On Fri, 22 Nov 2002 10:07:55 +1300, "Chris Zampese" <[EMAIL PROTECTED]> wrote:

> Hello everyone,
> 
>   I have a bunch of folders that I would like to search through for a 
> particular string.  Any hints on how to do this?  I do not know the names of 
> all the files, but would like to be able to return the name.
> 
> Basically this is so I can search a bunch of files for a word, and be able 
> to tell which files the word occurs in.
> 
> Thanks as always,
> 
>                  Chris.
> 
> 
> 
> 
> 
> _________________________________________________________________
> Protect your PC - get McAfee.com VirusScan Online 
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to