How to write a macro to filter out (or keep ) the special
paragraph including a keyword?
I use UEStudio to analyze the output messages of a simulation.
the trace buffer are something like these:
-----------------------------------------------------------------------
** Event #8656. T= 12 (12.00s). Module #30 `rose.node[27]'
{{{{{ Node[27]: round(1) handleMessage:[28]-->[-1]:<MSG_SPT_DEGREE>
Node[27]:handleMessage(): delete msg }}}}}
** Event #8657. T= 21 (21.00s). Module #3 `rose.node[0]'
{{{{{ Node[0]: round(1) handleMessage:<PLAN_CHECK_ALIVE>
Node[0] remain energy = 1999.95
Node[0]:handleMessage(): delete msg }}}}}
** Event #8658. T= 21 (21.00s). Module #4 `rose.node[1]'
{{{{{ Node[1]: round(1) handleMessage:<PLAN_CHECK_ALIVE>
Node[1] remain energy = 1999.98
Node[1]:handleMessage(): delete msg }}}}}
-------------------------------------------------------------------------
In order to make things clear, I'd like to detele all the trivial messages.
For the above instance, all the messages contain "<PLAN_CHECK_ALIVE>".
only the following paragraph are kept:
=======================================================
** Event #8656. T= 12 (12.00s). Module #30 `rose.node[27]'
{{{{{ Node[27]: round(1) handleMessage:[28]-->[-1]:<MSG_SPT_DEGREE>
Node[27]:handleMessage(): delete msg }}}}}
=======================================================
How can I write a macro to achieve this work?
Say, given a keyword, "PLAN_CHECK_ALIVE", delete the whole paragraph (between
two space lines) which contain this keyword.
paragraph including a keyword?
I use UEStudio to analyze the output messages of a simulation.
the trace buffer are something like these:
-----------------------------------------------------------------------
** Event #8656. T= 12 (12.00s). Module #30 `rose.node[27]'
{{{{{ Node[27]: round(1) handleMessage:[28]-->[-1]:<MSG_SPT_DEGREE>
Node[27]:handleMessage(): delete msg }}}}}
** Event #8657. T= 21 (21.00s). Module #3 `rose.node[0]'
{{{{{ Node[0]: round(1) handleMessage:<PLAN_CHECK_ALIVE>
Node[0] remain energy = 1999.95
Node[0]:handleMessage(): delete msg }}}}}
** Event #8658. T= 21 (21.00s). Module #4 `rose.node[1]'
{{{{{ Node[1]: round(1) handleMessage:<PLAN_CHECK_ALIVE>
Node[1] remain energy = 1999.98
Node[1]:handleMessage(): delete msg }}}}}
-------------------------------------------------------------------------
In order to make things clear, I'd like to detele all the trivial messages.
For the above instance, all the messages contain "<PLAN_CHECK_ALIVE>".
only the following paragraph are kept:
=======================================================
** Event #8656. T= 12 (12.00s). Module #30 `rose.node[27]'
{{{{{ Node[27]: round(1) handleMessage:[28]-->[-1]:<MSG_SPT_DEGREE>
Node[27]:handleMessage(): delete msg }}}}}
=======================================================
How can I write a macro to achieve this work?
Say, given a keyword, "PLAN_CHECK_ALIVE", delete the whole paragraph (between
two space lines) which contain this keyword.