I am attempting to search the syslog for certain messages, but I cannot seem to get it to work. I used the command below to no avail. The variable YDAY is initiated in the profile and is exported.
In this case, YDAY=0900, so I'm basically searching for the strings "bkp33dly 0900 Completed" in the syslog.
awk -v YDAY="$YDAY" '/bkp33dly YDAY Completed/{print}' /var/adm/syslog/syslog.log
I am testing it in the command line prior to compiling a larger awk script.
Any help would be greatly appreciated.
Thanks,
John
In this case, YDAY=0900, so I'm basically searching for the strings "bkp33dly 0900 Completed" in the syslog.
awk -v YDAY="$YDAY" '/bkp33dly YDAY Completed/{print}' /var/adm/syslog/syslog.log
I am testing it in the command line prior to compiling a larger awk script.
Any help would be greatly appreciated.
Thanks,
John