in reply to issue with grep in the output of a command
Hi janasec,
You can split and grep like this:
and the output isuse Data::Dumper; my @out = grep /FC_DVT/, split("\n", $out); print Dumper( \@out ) . "\n";
UPDATE 'use' line was edded.$VAR1 = [ 'cfg: FC_DVT MEZZI; MEZZI1', 'cfg: FC_DVT' ];
|
---|
In Section
Seekers of Perl Wisdom