Doh!
ack! who chopped my line ;)
this
Communication $grepTMPFILE | grep failure | wc -l
should have been
grep Communication $grepTMPFILE | grep failure | wc -l
the actualy sub of the code I am using is
foreach (@output) {
foreach my $test(@lookFor) {
$results{$test}++ if /$test/igo;
}
this should create a hash etc.. etc..
to search for multiple words above (as you suggested?) I would
$results{$test}++ if /$test/i && /failure/i;
sorry for the confusion!
- regex headache Yacketta, Ronald
- Re: regex headache Michael Fowler
- Re: regex headache Bradford Ritchie
- Re: regex headache Yacketta, Ronald
- Re: regex headache Michael Fowler
- RE: regex headache Yacketta, Ronald
- RE: regex headache Yacketta, Ronald
