if [ `grep "the requested operation was successfully completed" ${LOGFILE}` ] then ... all ok ... else ... gone south ... fi