my $found=0; print grep { $found or ( /line/ and $found=1 )} @ssh;