$ grep 'some-pattern' output-file #### system("grep 'some-pattern' output-file") and die "Error executing grep";