finding last match in a file

Keith O'Connell keith_oconnell at blueyonder.co.uk
Fri Sep 20 12:20:48 CEST 2002


>>>>> "Dag" == Dag  <dag at animagicnet.no> writes:

    Dag> The problem is that greping through large files with a fairly
    Dag> complex regexp is taking far too long, esp. when I know that
    Dag> the last occurance is almost always within the last 100
    Dag> lines.


        How about tail -n 100 <filename>?

Keith
-- 
___________________________________   _
  Keith O'Connell.                   -o)
  Maidstone, Kent. (UK)              /\\
  keith_oconnell at blueyonder.co.uk   _\_v



More information about the Python-list mailing list