At 09:49 22.06.2001 -0400, Yacketta, Ronald wrote:
>Folks,
>
>Is this syntax correct for finding multiple words in a line?
>         $results{$test}++ if /$test/ && /Factory/ && /failed/;

Looks good.

>also, what would the syntax be to find a word in a line that does
>not contain another word? something similar to
>         grep joe output | grep -v fred

$results{$test}++ if($_ =~ /joe/ && $_ !~ /fred/);
Aaron Craig
Programming
iSoftitler.com

Reply via email to