develooper Front page | perl.beginners | Postings from January 2002

Smart grep

Thread Next
From:
sahraoma
Date:
January 17, 2002 13:21
Subject:
Smart grep
Message ID:
20020117222855.3bb5b6e0.sahraoma@worldnet.fr
Hi all,

I want to search for a particular pattern, say MIN_VALUE, in a series of files
with a digit as extension, say *.[0-9] for example.

These files are spread in a directory tree like this

directory1
	subdir1
	XX233
	   subsubdir1
		many_files
	        file1.0
		file2.1
		...
	   subsubdir2
	   sububdir3
	   ..
	subdiri


directory2
	subdir1
	XX233
	...


dirctory3
	XX233
....

directoryn
	XX233
....

The objective is to search for the pattern only in files from the particular subdirectory XX233 (recursively) in all the directories
directory1, directory2, ... Is there a fast and efficient way to do this.

Thanks in advance

Omar

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About