On Wed, 26 Mar 2003, James Ferree wrote:

> Hi,
> 
> I am looking to write a script that will look in a
> file for a list of text strings to search for like
> 
> req_aaaa
> req_bbb
> req_ccc
> 
> and search all the files in a subdirectory and below
> for the string, if it is found, then it prints out the
> the original string followed by the file name for each
> instance where it is found.  If it gets through all
> the files and finds none, the it prints out the
> original string and the Words NOT FOUND.

Are you looking a perl solution or would shell solution suffice
If so 'man find' and 'man grep' should give you the info.

For a perl solution
1) For traversing sub-directories
perldoc File::Find #File::Find comes with the standard distribution
2) File I/O
perldoc perlopentut
3) Regular Expressions
perldoc perlretut
perldoc perlre

> 
> Thanks for any help,
> Jim
> 
> 


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

Reply via email to