Re: [ILUG] Grep Sed etc question

From: Jerry Walsh (jerry at domain aardvark.ie)
Date: Fri 28 Sep 2001 - 12:55:20 IST


egrep '^2001-09-27 1[56]:' logfile

would do the trick.

Jerry.

At 12:39 28/09/01 +0100, you wrote:
>hi, if i have logs formatted as follows
>
>2001-09-27 15:16:27 207.232.107.45
>2001-09-27 16:16:27 208.181.198.60
>2001-09-27 16:16:27 208.181.198.60
>2001-09-27 16:16:27 208.181.198.60
>
>what is a quick way of getting all the logs for the timeframe 15:00 ->



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:12:21 GMT