[CentOS] [OT] Grep Patterns
lists at spuddy.org
Thu Apr 8 01:11:55 UTC 2010
On Wed, Apr 07, 2010 at 04:04:53PM -0700, Slack-Moehrle wrote:
> Yes whitespace always.
> I am replacing CP_ with CPLAT::CP_ and when i execute the grep I want
Well, be clear. Are you replace "CP_" or " CP_". If the latter then
it's a LOT easier; just search for " CP_" (grep ' CP_'). If the first
then it's harder.
But sometimes it's easier to just not sweat the little stuff. Do two
grep CP_ | grep -v CPLAT::CP_
Not as efficiently, but adequate and easy.
More information about the CentOS