| Crates.io | drgrep |
| lib.rs | drgrep |
| version | 0.2.3 |
| created_at | 2025-04-17 20:45:36.067501+00 |
| updated_at | 2025-05-28 12:31:17.405035+00 |
| description | A Rust implementation of the grep software with more support and features for args, workspace scanning and CLI |
| homepage | https://donilite.github.io/drgrep/ |
| repository | https://github.com/DoniLite/drgrep |
| max_upload_size | |
| id | 1638423 |
| size | 99,793 |
drgrep is a simple, fast command-line tool written in Rust for searching patterns in text, with minimal external dependencies (beyond Rust itself). It's inspired by grep but uses a simplified and custom regular expression (regex) engine, designed to be lightweight and easy to integrate.
Cargo.toml).You can install drgrep in several ways:
Download the binary corresponding to your operating system from the GitHub Releases page.
drgrep-linux, drgrep-macos, drgrep-windows.exe).drgrep (or drgrep.exe) and place it in a directory included in your system's PATH.If you have Rust and Cargo installed (rustup), you can compile from source:
# Clone the repository
git clone https://github.com/DoniLite/drgrep.git
cd drgrep
# Compile in release mode
cargo build --release
# The binary will be located at target/release/drgrep
# You can copy it to your PATH:
# sudo cp target/release/drgrep /usr/local/bin/ # Example for Linux/macOS
You can install it directly with Cargo:
cargo install drgrep
The basic syntax is:
drgrep [ARGS]
Examples:
.github/drgrep -r Rust -p ./.github
Output: 
drgrep -k error -p application.log
drgrep -r \\w\\w\\w\\w\\w -p document.txt
docker images | drgrep -k postgres -c @ # Be sure to pass this to tell the program to read the standard output
And other advanced regex features...
Contributions are welcome! Feel free to open an Issue to report a bug or suggest an improvement, or a Pull Request with your changes. Please follow standard open-source contribution practices.
This project is distributed under the MIT License. See the LICENSE file for more details.