if ($line =~ /Total/ and $line != /failed/){ print "$line\n"; }