[ILUG] Grep Sed etc question
Donncha O Caoimh
donncha.ocaoimh at tradesignals.com
Fri Sep 28 12:49:37 IST 2001
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
>
More information about the ILUG
mailing list