![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| logfile | naveeng.81 | Shell Programming and Scripting | 1 | 04-07-2008 12:32 PM |
| search a logfile for strings | amitrajvarma | UNIX for Dummies Questions & Answers | 0 | 11-25-2007 10:09 AM |
| last month's logfile | deep_kol | Shell Programming and Scripting | 2 | 06-26-2007 03:27 PM |
| sort a logfile | joerg | Shell Programming and Scripting | 7 | 06-23-2004 02:28 AM |
| get last section from large logfile | kburrows | Shell Programming and Scripting | 9 | 05-23-2004 08:06 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Extracting Logfile Entries
Hello All,
I am trying to write a KSH script that would extract lines from a logfile, within a certain timeframe, in reverse order. Ex. -Sample logfile- INFO 2006-07-12 00:23:00 - ModeDecision Time in WF:27 INFO 2006-07-12 00:24:00 - NRT_MQ_RES:108 INFO 2006-07-12 00:25:00 - getRecords() :R4000 :37 INFO 2006-07-12 00:26:00 - ModeDecision Time in WF:43 INFO 2006-07-12 00:27:00 - JDBC [PADRECORD] : 5 From the sample logfile above, I am needing to extract the lines starting from '00:27:00' to three minutes prior (00:24:00). I could not find anything from the 'date' command that would reverse time. Any help would be greatly appreciated! |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|