b 05/Jul/2010:07:00:10 a 05/Jul/2010:06:00:09 b 05/Jul/2010:07:00:10 c 05/Jul/2010:07:10:16 d 05/Jul/2010:08:00:10 e 05/Jul/2010:09:00:10 f 05/Jul/2010:10:00:10 h 05/Jul/2010:11:00:10 i 05/Jul/2010:12:00:20 j 05/Jul/2010:13:00:10 k 05/Jul/2010:14:00:10 l 05/Jul/2010:15:00:30 m 05/Jul/2010:16:00:10 n 05/Jul/2010:17:00:10 o 05/Jul/2010:18:00:10 p 05/Jul/2010:19:00:40 q 05/Jul/2010:20:00:10 a 05/Jul/2010:21:00:10 b 05/Jul/2010:22:00:50 v 05/Jul/2010:23:00:20 g 06/Jul/2010:01:00:10 k 06/Jul/2010:02:00:10 i 06/Jul/2010:03:00:14 j 06/Jul/2010:04:00:10 k 06/Jul/2010:05:00:18 l 06/Jul/2010:06:00:10 m 06/Jul/2010:07:00:10 n 06/Jul/2010:08:00:19 n 06/Jul/2010:09:00:10
Input file is 19739530 lines. How to extract the date that is of 3 days old dated from 05/Jul/2010:06 to next day 06/Jul/2010:09 from the input file to another file. Please help me. How to make the execution faster.

In reply to Extract the lines from file by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.