Forums

gco - grep cobra

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

gco - grep cobra

Postby Charles » 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
Charles
 
Posts: 2510
Location: Los Angeles, CA

Return to Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron