Page 1 of 1

gco - grep cobra

PostPosted: Wed Oct 22, 2008 12:33 pm
by Charles
From the command line, I search Cobra source code with "gco <text>".

On Windows:

> gco foo

And gco.bat is:

@grep -rniH --color --include=*.cobra --include=*.text %* .

I use cygwin to get grep. There may be other ways to get grep.

On Mac/Linux/posix:

$ gco foo

And gco is:

# grep cobra
grep -rniH --color --include=*.cobra --include=*.text "$*" .


I also have gpy, gcs, etc.

In case that's useful to anyone,

-Chuck