Well I am assuming you can't just use a "find" commandline with a -exec.

You might want to check out File::Find

http://search.cpan.org/author/JHI/perl-5.8.0/lib/File/Find.pm

http://danconia.org

SilverFox wrote:
Hi all, I'm looking for the best way to search/test multiple directories for a specific file and exec a command depending on which directory is missing the file. any advice?

ex:
(I'm searching for "filename" in the following dir)
/dir1/file/search
/dir2/file/search
/dir3/file/search/filename

command:
we need to know which directory the file was found in and exec command.

Thx in advance.


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

Reply via email to