0
I use that notation at my log files:
[something-something]
somethings are necessary and variable length characters and numbers. My special log file includes line that has characters explained above. i.e.
Line 1: 14:40:45,107 DEBUG [AS-kmksdf] Error occured!
Line 2: something somethingg..
Line 3: 14:40:45,108 DEBUG Some other errors
I want to get Line 1 and Line 2(because error continues at line 2). My log files grows dynamically and I show it at my screen with:
tail -f log.txt
How can I show the lines that begins with my special line until it gets a new line that has number number : number number : number number , one or more length number (this is hour and comma seperated error code number)
(I think looking for number,number: may be enough)
I use cygwin with windows7 and can run some linux commands on my cmd.exe.
This question is releted to: this question