https://github.com/pythonicforge/grrs
👀 A fast and efficient grep clone built with Rust, designed for seamless pattern searching and command-line performance.
https://github.com/pythonicforge/grrs
cargo cli grep rust
Last synced: 5 days ago
JSON representation
👀 A fast and efficient grep clone built with Rust, designed for seamless pattern searching and command-line performance.
- Host: GitHub
- URL: https://github.com/pythonicforge/grrs
- Owner: pythonicforge
- License: apache-2.0
- Created: 2025-04-16T05:31:35.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2025-04-16T06:29:46.000Z (10 months ago)
- Last Synced: 2025-10-28T17:37:35.461Z (4 months ago)
- Topics: cargo, cli, grep, rust
- Language: Rust
- Homepage: https://crates.io/crates/grrs-hardik
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# grrs
`grrs` is a simple command-line tool to search for a pattern in a file and display the lines that contain it.
### Usage
Run the program with the following arguments:
- `pattern`: The pattern to search for in the file.
- `path`: The path to the file to read.
#### Example
```bash
grrs-hardik "search_pattern" /path/to/file.txt
```
This will search for the `search_pattern` in the specified file and print all lines containing the pattern.
#### Dependencies
This project uses the following dependencies:
- [`anyhow`](https://crates.io/crates/anyhow): For error handling.
- [`clap`](https://crates.io/crates/clap): For command-line argument parsing.
#### Error Handling
If the file cannot be read, the program will display an error message with context about the failure.
### License
This project is licensed under the MIT License.