Submitted by nurani on Wed, 07/07/2010 - 18:32.
( categories: perl questions )
Hi,
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.
Thanks
nurani
