alert_oss.log oracle log file in hp-unix

Hi
I have go this alert_oss.log that is basically capturing all the oracle errorlogs.Now the problem is that it is one huge file and to see log of some particular date i tried
cat alert_oss.log | grep 'Mar 25 10:44:45 2007' > alert_25.txt
is not giving me the required output.
pls suggest

rgds
assassin

Well, if you try to do a grep for a specific date and time, then thats what is going to happen. Try leaving the timestamp out of the grep and just grep for "Mar 25" to see what happens. Also, do not redirect the output to a file yet (not till you've found the pattern that gets the data you want).

i tried with the grep it gives me the output
MAR 25 14:00:00 2007
MAR 25 14:00:052007
MAR 25 14:00:07 2007

but i am not getting the file to read errors, after every execution of oracle it archives and inserts into this file now to read this file from particular date that is what want.After each execution in one line it gives the output format like above.

rgds
assasssin

Not getting what you want to do exactly. Can you post a few lines from the file? Post the lines you want extracted from those as well.

Also, this post is not HP-UX specific, so I am moving it to the scripting section.