Folks,
I have been looking for a way to search for two strings in a line
at the command line I would
Communication $grepTMPFILE | grep failure | wc -l
how would this be converted into perl/regex? I have part of it right now
(Thanxs to others on the list)
foreach (@output) {
foreach my $test(@lookFor) {
$results{$test}++ if /$test/igo;
}
}
I need to add a && to the if above.. correct?
if ( $test == 'Communication' ) {
if ( /$text/igo && /failed/igo ) { $results($test)++; }
}
- Re: 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
