in reply to remove lines with exact match only

In Perl regex you can mark ("anchor") beginning and end of line with ^ and $.

But the (badly formated) code you show doesn't look like perl

Update

Fgrep has nothing in common with perl, marked Off Topic

Maybe have a look at Re: perl grep clone (CLI & perlrun) if you want to filter in a pipe using perl

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

  • Comment on Re: remove lines with exact match only (OT)