# How to Exclude UVM\_ERROR in Regression list?

**URL:** <https://verificationacademy.com/forums/t/how-to-exclude-uvm-error-in-regression-list/38710>\
**Category:** UVM\
**Tags:** UVM, uvm\_error, regression, PERL\
**Created:** [February 11, 2021, 6:19am UTC](https://verificationacademy.com/forums/t/how-to-exclude-uvm-error-in-regression-list/38710 "2021-02-11T06:19:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pullaraobeerelli](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/p/6a8cbe/32.png) [@pullaraobeerelli](https://verificationacademy.com/forums/u/pullaraobeerelli)\
**Post date:** [February 11, 2021, 6:19am UTC](https://verificationacademy.com/forums/t/how-to-exclude-uvm-error-in-regression-list/38710/1 "2021-02-11T06:19:04Z")

</div>

I have one regression script.  
if log have ERROR message then it will give status as FAIL. (otherwise it will give PASS).  
but here its grepping UVM\_ERROR also.  
so how to exclude UVM\_ERROR word in this script.?

```verilog

         .
         .
         .
        system ("grep -F 'ERROR' ./$testcase.log > Temp.v ");
        open (TEMP , "Temp.v");
         my @Temp = <TEMP>; my $error = @Temp;
        if ($error) {
	   system ("mv $testcase.log ../regression/$testcase/.");
           print STATUS "STATUS:\t FAIL\n";
		}   
       else { 

           print STATUS "STATUS:\t PASS\n";
       }

```

Thanks,

---

<div class="post-metadata">

**Author:** ![cgales](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/c/ccd318/32.png) [@cgales](https://verificationacademy.com/forums/u/cgales)\
**Post date:** [February 11, 2021, 1:33pm UTC](https://verificationacademy.com/forums/t/how-to-exclude-uvm-error-in-regression-list/38710/2 "2021-02-11T13:33:26Z")

</div>

_In reply to [Rao.Bee](https://verificationacademy.com/forums/t/how-to-exclude-uvm-error-in-regression-list/38710):_

You want to search on how to use grep to match ‘ERROR’ and not ‘UVM\_ERROR’.

---

<div class="post-metadata">

**Author:** ![pullaraobeerelli](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/p/6a8cbe/32.png) [@pullaraobeerelli](https://verificationacademy.com/forums/u/pullaraobeerelli)\
**Post date:** [February 11, 2021, 2:16pm UTC](https://verificationacademy.com/forums/t/how-to-exclude-uvm-error-in-regression-list/38710/3 "2021-02-11T14:16:48Z")

</div>

_In reply to [cgales](https://verificationacademy.com/forums/t/how-to-exclude-uvm-error-in-regression-list/38710/2):_

thanks cgales,

i have found correct grep command.
