![]() |
|
|
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 |
| how to grep and compare timestamp in a file with the current date | achu | AIX | 1 | 05-25-2009 09:20 AM |
| 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 |
|
|
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 log file each line starts with 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: |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|