[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



    Robert> Has anyone seen or written a script that will extract the
    Robert> lines from a log between a specified start and stop
    Robert> time/string?

perl -lne 'print if /start/../end/' foo


     Replace `start' and `end' to taste (minding any regex
metacharacters, of course).



-- 
Fletch                | "If you find my answers frightening,       __`'/|
fletch at phydeaux.org   |  Vincent, you should cease askin'          \ o.O'
                      |  scary questions." -- Jules                =(___)=
                      |                                               U


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="01015" href="msg01015.html">[ale] extract lines from a log between a specified start and stop	time?</a></strong>
<ul><li><em>From:</em> bob at verysecurelinux.com (Bob Toxen)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00985" href="msg00985.html">[ale] extract lines from a log between a specified start and stop	time?</a></strong>
<ul><li><em>From:</em> RGibson at Lithonia.com (Gibson, Robert H.)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg01004.html">[ale] [OT]FreeBSD Resources</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg01006.html">[ale] [OT]FreeBSD Resources</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00985.html">[ale] extract lines from a log between a specified start and stop	time?</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg01015.html">[ale] extract lines from a log between a specified start and stop	time?</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#01005"><strong>Date</strong></a></li>
<li><a href="threads.html#01005"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>