Skip navigation.
Your source for Perl tips, howto's, faq and tutorials
( categories: )


I am new to PERL and I need to complete this by Today (Wednesday).

I have a script whose purpose is to remote login to a machine and grep the files and get the counts.

The code I have in my PERL script is

$CTR=`remsh $m -l $MACHINES{$m} -n grep \"$input\" $output`;

$input="Number of orders processed";
$output is the file name I need to grep on.

The results I get are :

Number of orders processed
Number of orders that are yet to be processed

Obviously, I am grepping only for the first line.

Any suggestions on how to grep the Phrase.