is there a way i can work it into this little but of a scipt
sub pall_nvrm {
print "plese wait...This can take a while, all results will be outputed at the end\n";
print `pall -w -p "/u/ab/scripts/nvrm" |tee /tmp/nvrmoutput`;
<HERE>
}
open the file using the open method and read the data using while loop and check how many lines having the pattern. And in the end, you are write the count in the original file.