Open Source
v0.2.1

ninjagrep

Lightning-fast text search with advanced pattern matching and intuitive output formatting. Find what you need, when you need it.

Terminal
$ ninjagrep "TODO" src/
src/main.rs:45: // TODO: Implement error handling
src/utils.rs:12: // TODO: Add logging

$ ninjagrep -i "error" logs/ --count
Total matches: 1,247
Files matched: 89

Powerful Features

Search at ninja speed with advanced capabilities

Blazing Fast

Search millions of lines in seconds using optimized algorithms and multi-threaded processing built on Rust's performance.

Advanced Regex

Full support for regular expressions with pattern matching, capture groups, and lookarounds for complex searches.

Case Insensitive

Easy case-insensitive searching with a single flag. Find matches regardless of casing without complex patterns.

Count Mode

Get quick statistics on matches per file with count mode. Perfect for understanding search result volume at a glance.

Filtering

Exclude files and directories with powerful filters. Skip node_modules, .git, and other directories automatically.

Clean Output

Formatted, readable output with file paths, line numbers, and highlighting. Easy to read and parse programmatically.

Usage Examples

Intuitive commands for powerful searches

Basic Search

$ ninjagrep "function" src/

Case Insensitive

$ ninjagrep -i "error" logs/

Count Matches

$ ninjagrep "TODO" --count

Regex Pattern

$ ninjagrep "fn\s+\w+" src/ --regex

Technical Details

Dependencies

  • clap - CLI argument parsing
  • regex - Regular expression engine
  • rayon - Parallel processing
  • memmap2 - Memory-mapped file I/O

System Requirements

  • Rust 1.70.0 or higher
  • 64-bit operating system
  • Linux, macOS, or Windows

Ready to Search?

Get ninjagrep and find what you're looking for in seconds.

More Tools

Open-Source Projects

🔢

count

Fast line/word/character counter

📍

whereis

Cross-platform path finder

🔍

ninjagrep

Blazing-fast text search (this page)

🧹

build-cleanup

Smart build artifact cleanup