[CentOS] [OT] Grep Patterns

Joseph L. Casale jcasale at activenetwerx.com
Wed Apr 7 23:01:18 UTC 2010


>How would I write I want to find 'CP_', but NOT instances of 'CPLAT::CP_'?

What comes before 'CP_' when you want a match? Whitespace, other chars, is it
just 'CPLAT::CP_' you don't want?

Anchor the search on that criteria, like a negated group before the 'CP_' or
at least one of 'whitespace' for example...



More information about the CentOS mailing list