CGrep
A command-line search tool that finds patterns in source code with awareness of code, comments, and strings.
By Nicola Bonelli
Compare CGrep with another product
Alternatives
See all alternativesAbout CGrep
CGrep searches source files by distinguishing code from comments and string literals. It supports semantic patterns, multi-line searches, language filters, and test code filtering across multiple languages.
It is useful for developers who want more context than plain text search provides. CGrep is available from Hackage or can be built from source.
Strengths
- Searches code, comments, and string literals separately
- Supports semantic and multi-line patterns
- Can filter results to or exclude test code
Limitations
- Command-line interface only
Details
- Pricing
- FreeFree and open source under the GPL-2.0 license.
- License
- GPL-2.0
- Developer
- Nicola Bonelli
- Platforms
- Command line
- How it runs
- Downloadable app
- Best suited for
- Developers searching code by syntax and context
- Categories
- CLI tools, Developer tools
- Last verified
- Added
- Provenance
- Selected from the Homebrew formula
- Sources