[ILUG] Grep Sed etc question

Jerry Walsh jerry at aardvark.ie
Fri Sep 28 12:55:20 IST 2001


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 ->





More information about the ILUG mailing list