<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000099">
Maybe this might work<br>
<pre wrap="">tail -50 filename | tac | grep -m 1 "matching"
Kush
</pre>
<br>
Interlug wrote:
<blockquote cite="mid1156444149.3789.464.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org"
type="cite">
<pre wrap="">
tail -50 -r filename | grep -m 1 "matching"
would grab it for me if it exists in the last 50 lines of the log.
Surely this is being done elsewhere. Got a pointer?
</pre>
</blockquote>
<br>
</body>
</html>