Note that there are some explanatory texts on larger screens.

plurals
  1. POPerl pattern matching from one file and write to another file
    primarykey
    data
    text
    <p>I have a text file like below:</p> <pre><code>1.temp _result runCount = 0 start testCaseCosqSched::testCosqSched_ext_lossless_sched_mixed_001 XXXetcXXX XXXetcXXX XXXetcXXX XXXetcXXX XXXetcXXX XXXetcXXX Resetting Statistics ... end testCaseCosqSched::testCosqSched_ext_lossless_sched_mixed_001 time testCaseCosqSched::testCosqSched_ext_lossless_sched_mixed_001 elapsed 46.968 PASS testCaseCosqSched::testCosqSched_ext_lossless_sched_mixed_001 start testCaseCosqSched::testCosqSched_ext_lossless_sched_update_001 XXXetcXXX XXXetcXXX XXXetcXXX XXXetcXXX XXXetcXXX XXXetcXXX Resetting Statistics ... end testCaseCosqSched::testCosqSched_ext_lossless_sched_update_001 FAIL testCaseCosqSched::testCosqSched_ext_lossless_sched_update_001 targetCosq::CosqSchedConfig (0, 3, 7, sched_mode=WRR, sched_weight=1) expected PASS but was bcm_cosq_gport_sched_set(0, 3, 7, 3, 1) expected 0 but was -9.. start testCaseCosqSched::testCosqSched_ext_lossless_sched_update_002 XXXetcXXX XXXetcXXX XXXetcXXX XXXetcXXX XXXetcXXX XXXetcXXX Resetting Statistics ... end testCaseCosqSched::testCosqSched_ext_lossless_sched_update_002 time testCaseCosqSched::testCosqSched_ext_lossless_sched_update_002 elapsed 100.078 PASS testCaseCosqSched::testCosqSched_ext_lossless_sched_update_002 </code></pre> <p>I need to print as:</p> <pre><code>Count TestCase Verdit 1 testCaseCosqSched::testCosqSched_ext_lossless_sched_mixed_001 PASS 2 testCaseCosqSched::testCosqSched_ext_lossless_sched_update_001 FAIL 3 testCaseCosqSched::testCosqSched_ext_lossless_sched_update_002 PASS </code></pre> <p>Could anyone suggest some tips on how to do this?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload