# cat /tmp/checkdate.log
SQL*Plus: Release 11.2.0.1.0 Production on Mon Sep 17 22:49:00 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
FIRST_TIME NEXT_TIME
-------------------- --------------------
16-SEP-2012 09:02:49 16-SEP-2012 09:47:15
16-SEP-2012 09:02:49 16-SEP-2012 09:47:15
Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
# tail /tmp/checkdate.log | grep "2012" | awk '{print substr($1,1,2), substr($1,4,3), substr($1,8,4)}'
16 SEP 2012
16 SEP 2012
I'm looking for a way to match date to day the script is ran. if the dates match i want it to start another script. can someone help me?
Roger