perl -ne 'print $_.=<> if /string/' testfile