in reply to searching for string & number..

Read the log file and use regex to get the pid and the string (.c file )
open (FH, "logfile") || die "Cannot open file"; while ($line = <FH>) { my ($pid, $cfile) = ($line =~ /cm:(\d+)\s+([^(]*)/); print "$pid $cfile\n"; }