|
how to grep for string in log file
Hi
Im running a backup scriptwhich creates a log file
how do grep for the string in the logfile so the backup script can continue to next stage otherwise it will exit
i.e
12:32:53 INF - Client completed sending data for backup
12:33:02 INF - Backup by root on client lonbob04bak using policy Business_Objects_User, sched bus_obj_user: the requested operation was successfully completed.
so want to have something like:
if
[logfile | grep "the requested operation was successfully completed"]
then continue
|