I have a db log file that I archive off every 6 months but I would like to capture daily events from it and then grep against it with certain problem keywords.
Should I use awk(and how) to pipe all lines between "Sun Sep 15" and "Mon Sep 16" to a tmp file?
Sun Sep 15 2002
01:00:04
01:00:04 Usr 62: Logout by on batch. (453)
01:00:05 BROKER 0: Shutdown request received from Admin Server. (8852)
01:00:05 BROKER 0: Begin normal shutdown (2248)
~~~~~~~~~~
Mon Sep 16 01:00:04 2002
01:00:04 Usr 62: Logout by on batch. (453)
01:00:05 BROKER 0: Shutdown request received from Admin Server. (8852)
01:00:05 BROKER 0: Begin normal shutdown (2248)
Thanks
spconway@comcast.net
Should I use awk(and how) to pipe all lines between "Sun Sep 15" and "Mon Sep 16" to a tmp file?
Sun Sep 15 2002
01:00:04
01:00:04 Usr 62: Logout by on batch. (453)
01:00:05 BROKER 0: Shutdown request received from Admin Server. (8852)
01:00:05 BROKER 0: Begin normal shutdown (2248)
~~~~~~~~~~
Mon Sep 16 01:00:04 2002
01:00:04 Usr 62: Logout by on batch. (453)
01:00:05 BROKER 0: Shutdown request received from Admin Server. (8852)
01:00:05 BROKER 0: Begin normal shutdown (2248)
Thanks
spconway@comcast.net