Cobra Interactive Query Language grep

NAME

G — search (grep) the source text of open file for a pattern

SYNTAX

	G pattern

DESCRIPTION

Search the source text of all currently open files for a pattern and display all matching lines.

EXAMPLES

	: G main	# display any line that matches the pattern
	: m main	# more precise matching on tokens

NOTES

No new marks are placed for matching lines or tokens. An alternative method would be to use a shell escape, which can then be applied to a different set of files. For instance:
	: !grep main ../src/*.c
or also:
	: !cobra -e main *.c

SEE ALSO

B, F, patterns, shell

Return to index
Manual
Tutorial
(Last Updated: 8 May 2017)