![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| get Message from file within date range | ambharish | UNIX for Dummies Questions & Answers | 2 | 06-29-2007 05:20 PM |
| Report file extraction based on Date range | ganapati | Shell Programming and Scripting | 2 | 07-13-2006 11:26 AM |
| Log File date compare for user defined range | mojo24 | Shell Programming and Scripting | 0 | 05-05-2006 06:39 AM |
| how to extract a range of lines from a file | beilstwh | Shell Programming and Scripting | 5 | 07-09-2004 08:20 AM |
| Need to print file names in a certain date range using ls | Shamwari | UNIX for Dummies Questions & Answers | 2 | 10-08-2001 07:14 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
retrieve lines from file which fall under the given date range
Hi, I need to retrieve the lines which fall under the given date range. eg:In a log file,i have the lines which will have the timestamp. the input will be some date range.eg: from date:03/Jan/2008,to date:24/Jul/2008.so now i want to retrieve the lines which have the timestamp between these 2 given date range. log file: ----------- [02/Jan/2008:19:37:00-20401-59-2] Process - data [22/Jan/2008:19:37:00-20401-59-2] Process - data [22/Mar/2008:19:37:00-20401-63-2] Process - data [01/Jul/2008:19:37:00-20401-63-2] Process - data [22/Jul/2008:19:37:00-20401-63-2] Process - data [25/Jul/2008:19:37:00-20401-63-2] Process - data result: Lines 2,3,4 and 5 have to be retrieved. the dates are within the given input date range. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|