3 ms·
>>not sure about Perl, I've not really used it Perl is great at these things. In fact you talk shell native tongue in Perl. use strict; use warnings;
by kamaal 8y ago
>>not sure about Perl, I've not really used it
Perl is great at these things.
In fact you talk shell native tongue in Perl.
use strict;
use warnings;
my @output = `your_command | your_another_command`;
foreach my $line (@output) {
chomp; #removes new line
$line = $_;
if ($line =~ /your regex goes here/) {
#if match, use $1, $2... to get the groups matched
#your buisness logic goes here
}
}