finding last match in a file

Keith O'Connell keith_oconnell at
Fri Sep 20 06:20:48 EDT 2002

>>>>> "Dag" == Dag  <dag at> 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 O'Connell.                   -o)
  Maidstone, Kent. (UK)              /\\
  keith_oconnell at   _\_v

More information about the Python-list mailing list