Skip to content

Releases: vinnytherobot/rgrep

rgrep v0.1.0

19 Apr 13:34

Choose a tag to compare

Overview

rgrep is a command-line tool that searches files for lines matching a given pattern, inspired by GNU grep and ripgrep. It leverages Rust's performance and safety guarantees to deliver fast, parallel searches across large codebases.

Key Highlights

Feature Description
🚀 Parallel Search Processes multiple files concurrently via Rayon
📝 Full Regex Perl-compatible regular expressions via the regex crate
🎨 Colored Output Matches highlighted in red bold, filenames in cyan, line numbers in yellow
📂 Recursive Traversal Walk directory trees with automatic .gitignore / .ignore respect
🔎 Glob Filtering Restrict searches to files matching patterns like *.rs or test*
Streaming I/O Buffered reading (64 KB) for efficient processing of large files

Usage

rgrep [OPTIONS] <PATTERN> <FILES>...
Argument Description
PATTERN The search pattern (supports full regex syntax)
FILES One or more files or directories to search

Options

Search

Flag Long Description
-i --ignore-case Perform case-insensitive matching
-v --invert-match Select lines that do not match the pattern
-r --recursive Recursively search all files in directories
-g --glob <PATTERN> Only search files whose names match the glob (e.g. *.rs, test*)

Output

Flag Long Description
-c --count Print only the count of matching lines per file
--no-line-number Suppress line numbers (shown by default)
--no-color Disable colored output (useful when piping to a file)

Info

Flag Long Description
-h --help Print help information
-V --version Print version