• Post Reply Bookmark Topic Watch Topic
  • New Topic

Want to extract some error block from a log file:  RSS feed

 
Praphul Kumar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
: it is a multiline block and it starts with
<Errorr>..........................................................
//then some other lines



//and then ends with
>
please help me to extract these types of block from a log/text file.

Thanks
Prapy
 
Richard Tookey
Bartender
Posts: 1166
17
Java Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This seem simple enough. Just read the log file a line at a time until it starts with <ERROR> then continue reading lines until the line starts with >. . What difficulty are you having ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!