The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 11-22-2007
sandy0077's Avatar
sandy0077 sandy0077 is offline
Registered User
  
 

Join Date: Aug 2007
Location: UK
Posts: 10
or maybe... u could

grep "the requested operation was successfully completed" logfile > /dev/null
if [ $? -eq 0 ]
then
continue
else
exit
fi

-