From: Digger Dog (diggerthelab@gmail.com)
Date: Tue Jan 04 2005 - 12:42:36 EST
I have a log file with basically 3 fields.
Time
Message
URL
I want to look in the log file and pull out the URL with the error
message and pipe the output to another file....
grep 'ERROR' url.log | awk '{print $10}' > error.log
output:
2004-15-25 http://sun.com
However.........
Let's say for example 15 minutes later the error message clears
further down the file, how can I clear this url from
error.log.........
I will need some sort of time checking loop, I have how to do it....
Maybe some scripting guru's on the list might have a simple
answer.....
It is a simple ksh script, I know perl would be faster but I don't
have time to learn it at this point.
Happy New Year and thanks....
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:57 EDT