I need to be able to identify files with file timestamps greater than a given timestamp.
I am using the following solution, although it appears to compare files at the "seconds" granularity and I need it at the milliseconds. When I tested my solution, it missed files that had timestamps greater than the given timestamp, but had the same "seconds" as the given timestamp.
#!/bin/ksh
DT_TMSTMP='2012-04-10 08:39:17.807192000'
touch --date "$DT_TMSTMP" ./last_date
for i in `find $INFA_SHARED/SrcFiles/NANTEST/Src -newer ./last_date`
do
print $i
done
exit
It missed these three timestamps:
08:39:17.861192000
08:39:17.943182000
08:39:17.967204000
and picked up files starting at:
08:39:18.019186000
Do I have any options to fix this?
Thanks