On Sun, 10 Nov 2002 11:27:17 -0500
SilverFox <[EMAIL PROTECTED]> 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?

#!perl 
@command = ('echo 1', 'echo 2', 'echo 3');
</dir$_/file/search/filename*> || system($command[$_-1]) for 1..3

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

Reply via email to