![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| to write a script to compare the file size in the current directory and previous dir | tweety | Shell Programming and Scripting | 5 | 02-10-2009 03:24 AM |
| How to compare the mtime of a file with the current time? | Krsh | Shell Programming and Scripting | 2 | 01-19-2009 03:02 AM |
| Perl: Extracting date from file name and comparing with current date | MKNENI | Shell Programming and Scripting | 4 | 03-26-2008 04:01 PM |
| get a file date/timestamp | alex31 | UNIX for Dummies Questions & Answers | 3 | 12-22-2005 10:06 AM |
| How to compare prev day file to current day file | Smurtzy | Shell Programming and Scripting | 1 | 12-05-2001 07:33 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
how to grep and compare timestamp in a file with the current date
I want to read a log file from a particular location.In the logfile , lines contains timestamp.I need to compare the timestamp in the logfile with the current date.If the timpestamp in the log file is less than 4 hours then i need to read the file from that location.Below is the file format.Please help as its urgent.
[4/30/09 4:03:51:100 EST] 00000070 AdminServiceI W ADMN0037W: [4/30/09 4:04:12:064 EST] 00000721 InvalidateByI E DYNA0052E: [4/30/09 4:04:47:335 EST] 000000e1 LeaseAlarm I SCHD0134I: [4/30/09 4:05:21:015 EST] 00000070 AdminServiceI W ADMN0037W: [4/30/09 4:06:51:079 EST] 00000070 AdminServiceI W ADMN0037W: |
|
||||
|
No duplicate or cross-posting, please read the rules.
Continue here: how to grep and compare timestamp in a file with the current date Thread closed. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|