The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 07-02-2009
rakeshawasthi rakeshawasthi is offline
Registered User
  
 

Join Date: Aug 2004
Location: India
Posts: 379
Welcome to unix.com and Please dont explode.
search with datecalc and you will get a script that can do the date calculation for you.
use the date command to get the date when you are running the script.
Try 'man date'
use awk to extract the datestamp from the logfile. use datecalc to check the difference between current date and logfile date.
~ Cheers