set text {tools show stats
Resource Manager info at 023 h 06/01/20 09:14:16.105:
Hardware Resource Usage #1, abc iom-32-100g, Pipe #0:
| Total | Allocated | Free
-------------------------------+-----------+-----------+------------
stat vale abc/ghj(0) | 256| 0| 256
stat vale abc/ghj(1) | 256| 0| 256
new Statistic | Count
---------------------------------+-------------
first | 0
seconds| 0
third info | Count
fourth| 0
fifth | 125
Forwarding Table Statistics | Used / Free / Max / Reject
---------------------------------+-----------------------------------
third stat Entries | 2 / 36856 / 36864
Important | 1 / 13133 / 13136 / 0
fifth entry < 56 | 1 / 5743 / 5744 / 0
sixth entry > 5 | 0 / 112 / 112 / 0
Service manager resources
-------------------------
Total count: 2/ 3072
Total info: 2/ 401
ABC Group Statistics | Used / Free / Max
---------------------------------+-----------------------
Entries | 0 / 256 / 256
}
regexp -nocase -line -- {^[[:space:]]*(Important.*)} $text - match1
regexp -nocase -line -- {^[[:space:]]*(fifth entry < 56.*)} $text - match2
puts "$match1\n$match2"