Hi,

I have a file big log like with plenty warnings.
They start with the text WARNING somewhere in the line.
The end with WARNING ENDED also somewhere in the line
These WARNING and WARNING ENDED is unique in the log, and are used as open and closing marks,
like { and } in C-functions.

Before and after can appear all ASCII-characters, meaning a till z, A till Z and [EMAIL PROTECTED]&*()_+.
So the following are all valid:

WARNING
WARNING aaa
WARNING aaa [EMAIL PROTECTED]&*()_+

   WARNING
   WARNING aaa
   WARNING aaa [EMAIL PROTECTED]&*()_+


aaa [EMAIL PROTECTED]&*()_+ WARNING
[EMAIL PROTECTED]&*()_+ WARNING aaa
[EMAIL PROTECTED]&*()_+ WARNING aaa ###
[EMAIL PROTECTED]&*()_+ WARNING aaa ### %%%

   aaa [EMAIL PROTECTED]&*()_+ WARNING
       [EMAIL PROTECTED]&*()_+ WARNING aaa
       [EMAIL PROTECTED]&*()_+ WARNING aaa ###
       [EMAIL PROTECTED]&*()_+ WARNING aaa ### %%%


This warnings is at least two lines, but can be longer.
For example when 16 bits of bus is not connected, like:

Three examples here :

WARNING 200 about DBUS(16:0)
+-- DBUS(9) is not connected, connected it to ground !
+-- DBUS(10) is not connected, connected it to ground !
+-- DBUS(11) is not connected, connected it to ground !
+-- DBUS(12) is not connected, connected it to ground !
+-- DBUS(13) is not connected, connected it to ground !
+-- DBUS(14) is not connected, connected it to ground !
+-- DBUS(15) is not connected, connected it to ground !
WARNING ENDED

U1:submodule U2: WARNING 301 : Input clock is floating
U1:submodule U2: WARNING ENDED 301 => Critical warning.


   WARNING 56 : Nothing connected sout(0,1) and sout(2)
   WARNING ENDED 56

Many of these warnings are known and not a problem.
But what I want is to fold them to one line to have a more clear overview so that the new ones are easier spotted.
So that the above appears as

+-- 8 lines: WARNING 200 about DBUS(16:0)
+-- 2 lines: U1:submodule U2: WARNING 301 : Input clock is floating
+-- 2 lines:     WARNING 56 : Nothing connected sout(0,1) and sout(2)


I tried the suggestions earlier this week, but fail to get this working.

Thanks anyway.
Best regards,
Eric

_________________________________________________________________
Interest Rates near 39yr lows! $430,000 Mortgage for $1,399/mo - Calculate new payment http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9632-18466&moid=7581

Reply via email to