March 2nd, 2011, 04:51 PM
Aix sh script to see if file got modified today
I am a newbie to aix scripting. I am trying to create a simple sh script to flag if a given file was created today's date. This script will run daily to check this so I can't hard code today's date. I've seen similar posts about this but not exactly for this and can't piece it together. I've seen other posts commenting that in UNIX, its not easy getting the create date, so the modified date will do fine. Any help would be greatly appreciated.
March 10th, 2011, 12:24 PM
touch -t "`date +%Y%m%d`0000" tmpFile
find ./* -prune -newer tmpFile -type f
Last edited by LKBrwn_DBA; March 10th, 2011 at 12:26 PM.