gco - grep cobra
Posted: Wed Oct 22, 2008 12:33 pm
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
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