Re: [OT] Grep Patterns

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
greps:
  grep CP_ | grep -v CPLAT::CP_

Not as efficiently, but adequate and easy.

-- 

rgds
Stephen
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux