From: Donncha O Caoimh (donncha.ocaoimh at domain tradesignals.com)
Date: Fri 28 Sep 2001 - 12:49:37 IST
get today's date.. into a TODAY variable.. (man date)
grep "$TODAY 15\|$TODAY 16:00" log.txt
(untested)
Someone else will point out how to make that better :)
Donncha.
JustinMacCarthy 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 ->
> 16:00
>
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:12:21 GMT